Sha*_*r S 4 jms message-driven-bean wildfly
在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
Run Code Online (Sandbox Code Playgroud)
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")
})
Run Code Online (Sandbox Code Playgroud)
3)标准full.xml:
<jms-queue name="ReRatting_Queue">
<entry name="java:/queue/ReRatting_Queue"/>
<durable>true</durable>
</jms-queue>
Run Code Online (Sandbox Code Playgroud)
请帮助我任何一个为什么会出现此错误以及如何在wildfly8应用程序服务器中解决此问题
关心尚卡尔
| 归档时间: |
|
| 查看次数: |
5727 次 |
| 最近记录: |