On 3/29/06, toxel <[EMAIL PROTECTED]> wrote: > > Hello > > I want to use ActiveMQ "right" > 1). For fast work > Should I create connection pool instead of amqFac.createConnection > every time ?
Creating a connection is a heavy operation, but the upside is that connections can be shared between multiple threads. > Should I create Destination pool ? instead of session.createQueue or > session.createTopic every time createQueue and createTopic is lightweight. Call it as often as you would like. > Should I create Consumer or Producer pool for equal Destination ? > Consumers and Producers should be long lived if possible. You can use Jencks (see http://jencks.org) to get a high performance MDB like like solution for consuming without needing J2EE. We also provided producer pooling connection factory in activemq so that you don't need to write your own pooling code. See: http://activemq.com/Spring+Support and look for the section that talks about the PooledConnectionFactory. > thank you > -- > View this message in context: > http://www.nabble.com/methods-of-work-with-amq-t1362527.html#a3651162 > Sent from the ActiveMQ - User forum at Nabble.com. > > -- Regards, Hiram
