メッセージ駆動型 Bean に WAS7.0 を使用しているため、アノテーションを使用して MDB を構成しました。私はxml で何も構成していません。構成ですべての構成をibm-ejb-jar-bnd.xml
指定していますが、私の MDB はキューからのメッセージをリッスンしていません。注釈を使用しているときにアドバイスしてください。XML で MDB を構成する必要がありますか? 以下の注釈を使用しています。ejb-jar.xml
@MessageDriven
@MessageDrive
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true"),
@ActivationConfigProperty(propertyName = "connectionFactoryJndiName",propertyValue = "jms/TestChangeSubscriptionConnectionFactory"),
@ActivationConfigProperty(propertyName = "destinationJndiName",propertyValue = "jms/ETestChangeSubscriptionQueue")
}, mappedName = "jms/TestChangeSubscriptionQueue")
@TransactionManagement(TransactionManagementType.BEAN)