Destination is mandatory

余生颓废 提交于 2019-12-23 11:57:03

问题


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

1)Error:

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 CODE:

@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>

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

Regards Shankar


回答1:


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'.



来源:https://stackoverflow.com/questions/24648248/destination-is-mandatory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!