在运行时创建 JMS 队列 [英] Creating JMS Queues at runtime

查看:31
本文介绍了在运行时创建 JMS 队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,应用程序用户可以在其中创建/删除队列.此外,他还可以将消息从一个队列移动到另一个队列、删除消息、根据某些过滤器重新排列队列中的消息.

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.

一种可能的设计是将activemq 用于队列,将apache camel 用于与Grails 集成的各种其他操作.但我不确定 ActiveMQ 是否允许在运行时创建/删除队列.
实施这样的系统会是一个不错的选择吗?

One possible design is to use activemq for queues 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?

推荐答案

是的,您可以在运行时创建/删除/管理 ActiveMQ 队列.这可以使用 ActiveMQ/Camel API 或 JMX API 来完成...

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

本文更详细地讨论了 ActiveMQ JMX API 方法...

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

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

您可以使用 Camel 的 receiverList 动态路由到端点(可以是新的 JMS 队列等)...

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

这篇关于在运行时创建 JMS 队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆