views:

37

answers:

1

I'd like to know how to properly use connection pooling with 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.

+1  A: 

Hi,

you need to use activemq-pool module and PooledConnectionFactory.

See http://activemq.apache.org/spring-support.html for some more info on the topic

Dejan Bosanac
Thanks, I don't know how I missed that in the documentation.
ScArcher2