jboss.xml中没有jndi名称的队列会有什么问题?

jboss.xml中没有jndi名称的队列会有什么问题?,jboss,message-queue,Jboss,Message Queue,我正在尝试使用运行在JBoss4上的应用程序从JBoss4迁移到JBoss6。 但当我尝试运行该应用程序时,会出现以下异常: 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): o

我正在尝试使用运行在JBoss4上的应用程序从JBoss4迁移到JBoss6。 但当我尝试运行该应用程序时,会出现以下异常:

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控制台中创建了队列

我试图寻找解决这个问题的办法,但似乎找不到任何办法

有人对可能出现的问题有什么线索/建议吗


提前谢谢

发生MDB错误是因为MDB部署时队列不存在。一旦在JMXConsole中创建了队列,就太晚了(除非您真的很快…:),并且在重新启动后队列配置不会保留

您需要在部署/hornetq/hornetq jms.xml中定义队列

大概是这样的:

   <queue name="PhysicalQueue">
      <entry name="/queue/PhysicalQueue"/>
   </queue>