Is keeping JMS connections / sessions / consumer always open a bad practice?
Code draft example:
// app startup code ConnectionFactory cf = (ConnectionF
FYI, there is no need to close the sessions, producers, and consumers of a closed connection( javax.jms.Connection ). The code below should be enough to release the resources:
try { this.connection.close(); } catch (JMSException e) { // }