本文介绍了目的地是必填项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I got following error while deploying my ear in wildfly 8.1.0 server

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)standard-full.xml:

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

请帮助我任何人为什么会出现此错误以及如何在wildfly8应用程序服务器中解决此问题

Please help me any one why this error came and how to solve this issue in wildfly8 application server

问候香卡

推荐答案

我猜属性名称必须以小写字母开头.您输入了目的地",但我很确定它必须命名为目的地".

I guess the property names must start with a lower case letter. You typed 'Destination' but I'm pretty sure it must be named 'destination'.

这篇关于目的地是必填项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-24 10:33