简体   繁体   English

如何利用Apache Active MQ连接池?

[英]How do I take advantage of Connection Pooling with Apache Active MQ?

I'd like to know how to properly use connection pooling with Active MQ. 我想知道如何在Active MQ中正确使用连接池。

Currently I have a Connection Factory that creates a new connection every time I want to send a message. 目前,我有一个连接工厂,每次我要发送消息时都会创建一个新的连接。

I'd like to be able to pool Connections so I don't incur the overhead of connecting every time. 我希望能够合并连接数,这样就不会产生每次连接的开销。

you need to use activemq-pool module and PooledConnectionFactory. 您需要使用activemq-pool模块和PooledConnectionFactory。

See http://activemq.apache.org/spring-support.html for some more info on the topic 有关该主题的更多信息,请参见http://activemq.apache.org/spring-support.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM