4.7. 활성화 구성 속성
4.7.1. 주석을 사용하여 MDB 구성
@ ActivationConfigProperty 주석에 해당하는 @MessageDriven 요소 및 하위 항목을 사용하여 활성화 속성을 구성할 수 있습니다. @ActivationConfigProperty 는 MDB의 활성화 구성 속성 배열입니다. @ActivationConfigProperty 주석 사양은 다음과 같습니다.
@Target(value={})
@Retention(value=RUNTIME)
public @interface ActivationConfigProperty
{
String propertyName();
String propertyValue();
}@ActivationConfigProperty표시 예
@MessageDriven(name="MyMDBName",
activationConfig =
{
@ActivationConfigProperty(propertyName="destinationLookup",propertyValue="queueA"),
@ActivationConfigProperty(propertyName = "destinationType",propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
})