ray: Automatische Wiederherstellung der Verbindung zu einem JMS-Provi

Hallo,
ich habe folgendes Szenario:
Es gibt zwei Serverinstanzen s1 und s2. Eine Applikation, die auf s1 läuft benutzt einen JMS-Provider der auf s2 läuft, um Nachrichten zu versenden. Alles läuft soweit ganz gut, nur wenn s2 neu gestartet wird, dann verliert die Applikation auf s1 die Verbindung zu dem JMS-Provider und kann diese auch nicht mehr aufbauen. Die Applikation auf s1 muss manuell neu gestartet werden, damit sie sich wieder mit dem JMS-Provider auf s2 verbinden kann.

Im log bekomme ich folgende Fehlermeldung:

java.net.ConnectException: Connection refused: connect. org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: Failed to create session. Exception: Connection refused to host: 172.25.0.25; nested exception is:
java.net.ConnectException: Connection refused: connect.
Caused by:
javax.jms.JMSException: Failed to create session. Exception: Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused: connect.
at jrun.jms.core.client.rmi.RmiJmsConnectionStub.crea teSession(RmiJmsConnectionStub.java:141)
at jrun.jms.core.client.JmsSession.<init>(JmsSession. java:248)
at jrun.jms.core.client.JmsTopicSession.<init>(JmsTop icSession.java:47)
at jrun.jms.core.client.JmsTopicConnection.createTopi cSession(JmsTopicConnection.java:62)
at jrun.jms.wrapper.enterprise.JRunXAConnectionWrappe r.createTopicSession(JRunXAConnectionWrapper.java: 81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at ...

Vielleicht hat ja jemand eine Idee, wie man automatisch reconnecten kann?

Vielen Dank,
Gruss Ray