The clients (both producers and consumers) are connected to reconnect to the server when they are notified by a JMSExceptionListener. Their connection factories will indefinitely try to reconnect to the server.