如何在jboss 6上设置HornetMQ中的主题

时间:2010-08-26 13:19:51

标签: java jboss jms

在hornetmq-jms.xml中,我看到了

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

但是如何配置主题?

在jboss 3.2.1中我们做了jbossmq-destinations-service.xml

1 个答案:

答案 0 :(得分:2)

下载HornetQ二进制发行版并查看“主题”示例。文件examples/jms/topic/server0/hornetq-jms.xml包含以下内容:

<!--the topic used by the example-->
<topic name="exampleTopic">
  <entry name="/topic/exampleTopic"/>
</topic>

还有很多其他例子。如果您觉得这很有用,请进行投票。