开发者

Creating JMS Queues at runtime [closed]

Closed. This question is opinion-based. It is not currently accepting answers.

Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.

Closed 4 years ago.

Improve this question

I am working on an application where the app user can create / delete queues . Also , he would be able to move a message from 1 queue to another, delete a message , rearrange the messages in the queue based on some filter.

One possible design is to use activemq for queue开发者_开发百科s and apache camel for various other operations having integrated with Grails. But I am not sure whether ActiveMQ allows creation /deleltion queues at runtime.

Would this be a good choice to implement such system?


Also a bit information about AMQ and on demand creation of destinations http://activemq.apache.org/how-do-i-create-new-destinations.html


Yes, you can create/delete/manage ActiveMQ queues at runtime. This can be done using ActiveMQ/Camel APIs or JMX APIs...

This article discusses the ActiveMQ JMX API approach in more detail...

http://www.consulting-notes.com/2010/08/monitoring-and-managing-activemq-with.html

You can use Camel's recipientList to route dynamically to endpoints (which can be new JMS queues, etc)...

http://camel.apache.org/recipient-list.html


Any JMS client can use Session.createQueue() or Session.createTopic(). IIRC, these will be temporary by default, meaning that they'll disappear once the particular session is closed.

You should also read the ActiveMQConnection JavaDoc, which gives you many options for creating temporary or durable destinations (queues and/or topics).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜