我们对排队解决方案的需求相当简单,生产者需要将事物放入持久队列中,并且这些需要由消费者处理。排队系统需要集成在 Spring 应用程序中并分布在多个 tomcat 主机上。
在阅读问题时,我看到很多人警告不要将 ActiveMQ 与 Spring 结合使用,因此我想知道在与基于 Spring 的应用程序结合使用时,考虑到简单性、可扩展性和性能,还有哪些替代方案。
our needs for a queuing solution are fairly simple, a producer needs to put things in a persistent queue and these need to be handled by a consumer. The queuing systems needs to be integrated within a Spring application and distributed on multiple tomcat hosts.
When reading through questions i see a lot of people that warn about using ActiveMQ with Spring for example so i am wondering what the alternatives are when taking simplicity, scalability and performance in mind when combined with a Spring based application.
发布评论
评论(1)
如果您已经在使用 Sping,那么将 ActiveMQ 与其集成是相当容易的。最简单的解决方案是独立运行 ActiceMQ,并让您的 Tomcat 应用程序使用 Spring JMS(或 AMQ 客户端 API)与其进行通信...
另一种选择是使用 阿帕奇骆驼。它具有强大的 ActiveMQ 支持,可以与外部或嵌入式代理一起使用,添加了许多消息传递/路由功能,并且可以轻松地在 ActiveMQ 或 Tomcat 中独立部署...祝你好运
If you are already using Sping, then integrating ActiveMQ with it is fairly easy. The simplest solution would be to run ActiceMQ standalone and have your Tomcat applications simply communicate with it using Spring JMS (or AMQ client APIs)...
Another option is to use Apache Camel. It has great ActiveMQ support, can work with an external or embedded broker, adds many messaging/routing features and can be deployed standlone, in ActiveMQ or in Tomcat easily...good luck