Java Message Service

Use

JMS clients create connections and then send or receive messages using the server-side JMS provider infrastructure. Infrastructure failures can cause connection loss and communication disruption.

JMS failover notifies clients when such a failure occurs. However, failover is not transparent to clients because they have to re-establish their connections to the JMS provider.

JMS clients have to implement the ExceptionListenerinterface, which enables them to receive a JMSException that is raised in the event of failure. The client application can then restore its connections to the JMS provider without having to close the old connection by implementing the onException method of the ExceptionListener interface.