[jboss-user] [JBoss Messaging] - Re: Best practices question

timfox do-not-reply at jboss.com
Sat Jul 22 21:27:14 EDT 2006

You should try and minimise the amount of connections you create (see JMS1.1 4.3):

"Due to the authentication and communication setup done when a Connection is
created, a Connection is a relatively heavyweight JMS object. Most clients will
do all their messaging with a single Connection. Other more advanced
applications may use several Connections. JMS does not architect a reason for
using multiple connections (other than when a client acts as a gateway
between two different providers); however, there may be operational reasons
for doing so."

However if you are using a JMS JCA resource adaptor to use JMS, then you should *not* attempt to pool connections yourself. This is because with JCA the "connections" are typically proxies around smart connection references which handle pooling transparently for you.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960143#3960143

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960143

More information about the jboss-user mailing list