users@glassfish.java.net

The recommended approach when

From: <forums_at_java.net>
Date: Wed, 30 Mar 2011 10:28:49 -0500 (CDT)

The recommended approach when using JMS in an application server such as
GlassFish is to call createQueueConnection() whenever you need a connection:
the connection will be fetched from a pool so this is a lighweight process.
Make sure you always call connection.close() after use, which will return the
connection to the pool.  It's not necessary to cache the connection
yourself.

Nigel


--
[Message sent by forum member 'nigeldeakin']
View Post: http://forums.java.net/node/786623