Include exception object to the error log
@@ -287,7 +287,7 @@ public class JMSConnectionFactory implements ConnectionFactory, QueueConnectionF
} catch (JMSException e) {
logger.error(
"JMS Exception while creating connection through factory '" + this.connectionFactoryString + "' "
- + e.getMessage());
+ + e.getMessage(), e);
// Need to close the connection in the case if durable subscriptions
if (connection != null) {
try {
