我正在尝试使用我在jboss 4上运行的应用程序从jboss 4迁移到jboss 6。但是当我尝试运行该应用程序时,我得到了以下异常:
DEPLOYMENTS IN ERROR:
Deployment "jboss.j2ee:binding=message-driven-bean,jndiName=local/ProjectMessage@15042526,plugin=invoker,service=EJB" is in error due to the following reason(s): org.jboss.deployment.DeploymentException: The message-destination 'PhysicalQueue' has no jndi-name in jboss.xml这是jboss.xml文件的一部分:
<message-driven>
<ejb-name>ProjectMessage</ejb-name>
<destination-jndi-name>queue/PhysicalQueue</destination-jndi-name>
</message-driven>我已经在jmx-console中创建了队列。
我试着寻找这个问题的解决方案,但似乎找不到任何解决方案。
有没有人有可能出问题的线索/建议?
提前感谢!
发布于 2011-04-28 21:59:27
发生MDB错误是因为部署MDB时队列不存在。一旦您在JMXConsole中创建了队列,就太迟了(除非您真的很快...:),并且在AS重启后队列配置不会被保留。
您需要在deploy/hornetq/hornetq-jms.xml.中定义队列
如下所示:
<queue name="PhysicalQueue">
<entry name="/queue/PhysicalQueue"/>
</queue>https://stackoverflow.com/questions/5405409
复制相似问题