首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

jboss6兑现ejb3 mdb时报错queue not bound

2012-09-03 
jboss6实现ejb3 mdb时报错queue not bound1. 打开%JBOSS_HOME%\server\default\deploy\hornetq目录,copy h

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>

?

?

转贴

热点排行