配置JMS-JBoss7(HornetQ)
我想为我的hornetq主题/队列配置分流。我正在使用JBoss7 我在standalone.xml中的消息子系统中配置我的HornetQ配置JMS-JBoss7(HornetQ),jboss,jms,jboss7.x,hornetq,Jboss,Jms,Jboss7.x,Hornetq,我想为我的hornetq主题/队列配置分流。我正在使用JBoss7 我在standalone.xml中的消息子系统中配置我的HornetQ <subsystem xmlns="urn:jboss:domain:messaging:1.3"> <hornetq-server> 我也在这里配置队列和主题 <jms-queue name="topic1"> <
<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>
jms.topic.topic1
jms.queue.topic1
对-->
如果我把它放在消息子系统中的stanalone.xml中,Jboss在启动时不会解析它。我应该把这个配置放在哪里?它可以存在于stanadalone.xml中吗
感谢我在子系统的错误部分放置了转向,这可以通过使用jboss cli运行以下命令轻松实现
/subsystem=messaging/hornetq-server=default/divert=my-divert:add(divert-address=jms.topic.topic1,forwarding-address=jms.queue.queue1,exclusive=true)