You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect connection is closed and recreate if needed
Caused by: javax.jms.IllegalStateException: The Session is closed
at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:752) ~[activemq-all-5.9.1.jar:5.9.1]
at org.apache.activemq.ActiveMQSession.configureMessage(ActiveMQSession.java:740) ~[activemq-all-5.9.1.jar:5.9.1]
at org.apache.activemq.ActiveMQSession.createTextMessage(ActiveMQSession.java:430) ~[activemq-all-5.9.1.jar:5.9.1]
at io.advantageous.qbit.jms.JmsService.sendTextMessageWithDestination(JmsService.java:199) ~[qbit-jms-0.9.1-SNAPSHOT.jar:na]
One work around for this (at least with ActiveMQ) is to use the failover support.
/** Use the failover support by default. */finalJmsServiceBuilderjmsServiceBuilder = getJmsServiceBuilder()
.setProviderURLPattern("failover:tcp://#host#:#port#");
Detect connection is closed and recreate if needed
One work around for this (at least with ActiveMQ) is to use the failover support.
I made this the default.
http://activemq.apache.org/how-can-i-support-auto-reconnection.html
But we should check this as well and try to reconnect if it is down. Even if we don't use failover.
The text was updated successfully, but these errors were encountered: