-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: messagingIssues in messaging modules (jms, messaging)Issues in messaging modules (jms, messaging)type: bugA general bugA general bug
Milestone
Description
Alfons Spiegelhauer opened SPR-3059 and commented
Method AbstractMessageListenerContainer.refreshSharedConnection
After line
ConnectionFactoryUtils.releaseConnection(this.sharedConnection, getConnectionFactory(), running);
this.sharedConnection should be set to null.
After the call to ConnectionFactoryUtils.releaseConnection the connection is logically closed
protected final void refreshSharedConnection() throws JMSException {
boolean running = isRunning();
synchronized (this.sharedConnectionMonitor) {
ConnectionFactoryUtils.releaseConnection(this.sharedConnection, getConnectionFactory(), running);
this.sharedConnection = null;
Connection con = createConnection();
try {
prepareSharedConnection(con);
}
catch (JMSException ex) {
JmsUtils.closeConnection(con);
throw ex;
}
this.sharedConnection = con;
}
}
Affects: 2.0.2
Metadata
Metadata
Assignees
Labels
in: messagingIssues in messaging modules (jms, messaging)Issues in messaging modules (jms, messaging)type: bugA general bugA general bug