我如何以编程方式在HornetQ中创建JMS主题和队列?(How can I programmatically create JMS topics and queues in HornetQ?)

我如何以编程方式创建与HornetQ的JMS主题和队列?

How can I programmatically create JMS topics and queues with HornetQ?

最满意答案

http://docs.jboss.org/hornetq/2.2.14.Final/user-manual/en/html/management.html

如果您阅读关于如何将核心地址转换为JMS对象的章节:

http://docs.jboss.org/hornetq/2.2.14.Final/api/org/hornetq/api/core/client/ClientSession.html#createQueue(org.hornetq.api.core.SimpleString,%20org.hornetq .api.core.SimpleString,%20boolean)

如果你喜欢,你也可以使用核心API。

http://docs.jboss.org/hornetq/2.2.14.Final/user-manual/en/html/management.html

and if you read the chapter about how core addresses are translated into JMS objects:

http://docs.jboss.org/hornetq/2.2.14.Final/api/org/hornetq/api/core/client/ClientSession.html#createQueue(org.hornetq.api.core.SimpleString,%20org.hornetq.api.core.SimpleString,%20boolean)

And you could also use just the core api if you like.

我如何以编程方式在HornetQ中创建JMS主题和队列?(How can I programmatically create JMS topics and queues in HornetQ?)

我如何以编程方式创建与HornetQ的JMS主题和队列?

How can I programmatically create JMS topics and queues with HornetQ?

最满意答案

http://docs.jboss.org/hornetq/2.2.14.Final/user-manual/en/html/management.html

如果您阅读关于如何将核心地址转换为JMS对象的章节:

http://docs.jboss.org/hornetq/2.2.14.Final/api/org/hornetq/api/core/client/ClientSession.html#createQueue(org.hornetq.api.core.SimpleString,%20org.hornetq .api.core.SimpleString,%20boolean)

如果你喜欢,你也可以使用核心API。

http://docs.jboss.org/hornetq/2.2.14.Final/user-manual/en/html/management.html

and if you read the chapter about how core addresses are translated into JMS objects:

http://docs.jboss.org/hornetq/2.2.14.Final/api/org/hornetq/api/core/client/ClientSession.html#createQueue(org.hornetq.api.core.SimpleString,%20org.hornetq.api.core.SimpleString,%20boolean)

And you could also use just the core api if you like.