目的地是强制性的

时间:2014-07-09 07:57:41

标签: jms wildfly message-driven-bean

在wildfly 8.1.0服务器中部署我的耳朵时出现以下错误

1)错误:

Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory",
        "jboss.deployment.subunit.\"wildfly.ear\".\"wildfly-     ejb.jar\".component.ReRattingMDB.START" => "org.jboss.msc.service.StartException in service   jboss.deployment.subunit.\"wildfly.ear\".\"wildfly-ejb.jar\".component.ReRattingMDB.START:   java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is  mandatory

2)MDB代码:

@MessageDriven(mappedName = "ReRatting_Queue",activationConfig =
    {
    @ActivationConfigProperty(propertyName="messagingType", propertyValue="javax.jms.MessageListener"),
    @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
    @ActivationConfigProperty(propertyName="Destination", propertyValue="java:/queue/ReRatting_Queue"),
    @ActivationConfigProperty(propertyName="ConnectionFactoryName", propertyValue="ConnectionFactory"),
    @ActivationConfigProperty(propertyName="MaxPoolSize", propertyValue="1"),
    @ActivationConfigProperty(propertyName="MaxMessages", propertyValue="1"),
    @ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true")
    })

第3)标准full.xml:

      <jms-queue name="ReRatting_Queue">
      <entry name="java:/queue/ReRatting_Queue"/>
      <durable>true</durable>
      </jms-queue>

请帮助我解决此错误的原因以及如何在wildfly8应用程序服务器中解决此问题

此致 香卡

1 个答案:

答案 0 :(得分:8)

我猜属性名称必须以小写字母开头。你键入了'目的地',但我很确定它必须被命名为'目的地'。