Jms 目的地是强制性的
在wildfly 8.1.0服务器中部署ear时出现以下错误 1)错误:Jms 目的地是强制性的,jms,wildfly,message-driven-bean,Jms,Wildfly,Message Driven Bean,在wildfly 8.1.0服务器中部署ear时出现以下错误 1)错误: Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory", "jboss.deployment.subunit.\"wildfly.ear\".\"wildfly- ejb.jar\".component.ReRattingMDB.START" => "org.jboss.msc.serv
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
@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")
})
<jms-queue name="ReRatting_Queue">
<entry name="java:/queue/ReRatting_Queue"/>
<durable>true</durable>
</jms-queue>
2)MDB代码:
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
@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")
})
<jms-queue name="ReRatting_Queue">
<entry name="java:/queue/ReRatting_Queue"/>
<durable>true</durable>
</jms-queue>
3)标准的full.xml:
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
@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")
})
<jms-queue name="ReRatting_Queue">
<entry name="java:/queue/ReRatting_Queue"/>
<durable>true</durable>
</jms-queue>
真的
请帮助我了解此错误的原因以及如何在wildfly8应用服务器中解决此问题
问候
Shankar我猜酒店名称必须以小写字母开头。您键入了“Destination”,但我很确定它必须命名为“Destination”。好的,然后请接受答案,向其他用户表明您的问题已经解决。如果有人有类似的问题,这会有很大帮助。