JBAS014521:在资源适配器hornetq-ra中找不到类型为javax.jms.Queue的消息侦听器

问题描述 投票:0回答:1

我在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

任何人都可以帮我解决这个错误及其解决方案吗?

jboss jboss7.x ejb-3.1 jboss-eap-6
1个回答
1
投票
@MessageDriven(
        name = "TestingXXXMDB", activationConfig = {
            @ActivationConfigProperty( propertyName="destinationType", propertyValue="javax.jms.Queue"),
            @ActivationConfigProperty( propertyName="destination", propertyValue="queue/Testing_XXX_QUEUE")
        },
    messageListenerInterface = MessageListener.class
)

尝试将权威接口类添加到注释中。

© www.soinside.com 2019 - 2024. All rights reserved.