【发布时间】:2014-06-09 21:09:46
【问题描述】:
我想为我的 hornetq 主题/队列配置一个转移。我正在使用 JBoss 7
我在standalone.xml中的消息子系统中配置了我的HornetQ
<subsystem xmlns="urn:jboss:domain:messaging:1.3">
<hornetq-server>
我也在这里配置队列和主题
<jms-queue name="topic1">
<entry name="queue/queue1"/>
<entry name="java:jboss/exported/jms/queue/queue1"/>
</jms-queue>
<jms-topic name="topic1">
<entry name="topic/topic1"/>
<entry name="java:jboss/exported/jms/topic/topic1"/>
</jms-topic>
我想配置一个转移..将主题转移到队列中,如下所示:
<!-- Attempting divert-->
<divert name="my-divert">
<address>jms.topic.topic1</address>
<forwarding-address>jms.queue.topic1</forwarding-address>
<exclusive>true</exclusive> </divert> -->
<!-- end divert-->
</hornetq-server>
如果我将它放在消息传递子系统中的 stanalone.xml 中,Jboss 将不会在启动时解析它。我应该把这个配置放在哪里 - 它可以放在 stanadalone.xml 中吗?
谢谢
【问题讨论】:
标签: jboss jms jboss7.x hornetq