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