我在MDB类中添加了以下注释:
@MessageDriven(
name = "TestingXXXMDB", activationConfig = {
@ActivationConfigProperty( propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty( propertyName="destination", propertyValue="queue/Testing_XXX_QUEUE")
}
)
错误:
JBAS014521: No message listener of type javax.jms.Queue found in resource adapter hornetq-ra
at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:105)
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:98)
at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:91)
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.start(MessageDrivenComponentCreateService.java:80)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
... 3 more
我正在使用JBoss EAP 6.3
任何人都可以帮我解决这个错误及其解决方案吗?
答案 0 :(得分:1)
normalize
尝试将权威接口类添加到注释中。