Я пытаюсь развернуть WAR на моем сервере JBoss, и WAR имеет зависимость от модуля EJB. При попытке развернуть WAR я получаю следующее сообщение об ошибке:Развертывание обработанного сообщениями компонента на сервере JBoss
Failed to start service jboss.deployment.unit Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory
Мой EJB-банку есть:
<message-driven>
<ejb-name>LeagueListenerMDB</ejb-name>
<ejb-class>com.club.ejb.LeagueListenerMDB</ejb-class>
<transaction-type>Container</transaction-type>
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-config-property-name>
<activation-config-property-value>javax.jms.Topic</activation-config-property-value>
</activation-config-property>
<activation-config-property>
<activation-config-property-name>destination</activation-config-property-name>
<activation-config-property-value>java:/topic/ejava/projects/contests</activation-config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
Мой EJB помечается:
@MessageDriven(activationConfig = {
@ActivationConfigProperty(propertyName = "destination", propertyValue = "java:/topic/ejava/projects/contests"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
@ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "ContestAction = 'ContestScheduled' OR "
+ "ContestAction = 'ContestRescheduled' OR "
+ "ContestAction = 'ContestCanceled'"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
})
У меня есть назначение в аннотации и ejb-jar, поэтому я не уверен, в чем проблема.