jboss6实现ejb3 mdb时报错queue not bound
1. 打开%JBOSS_HOME%\server\default\deploy\hornetq目录,
copy hornetq-configuration.xml和hornetq-jms.xml?到你的项目的META-INF目录下,以保证在编译后这2个文件会被打包到EAR的META-INF中。
2. 修改hornetq-jms.xml,将里面原来的内容清空,加上你自己的Queue即可。
类似于:
<configuration xmlns="urn:hornetq"
?????????????? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?????????????? xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
??? <queue name="MyQueue">
??????? <entry name="/queue/MyQueue"/>
??? </queue>
</configuration>
?
?
转贴