Hi,

I'm using the JMSAppender in my application but if the JMS server it 
publishes to goes down for some reason and then comes back up, my 
application does not re-bind to it unless I restart my application.

When the JMS Server goes down, I get the following exception only once:

========
log4j:ERROR Could not publish message in JMSAppender [aerologic].
javax.jms.JMSException: Error in publish javax.jms.JMSException: Failed 
to sendMessage  java.rmi.UnmarshalException: Error unmarshaling return 
header: java.net.SocketException: Connection reset by peer: Connection 
reset by peer

========

Is there a way to re-initialise the appender at runtime? What I would 
like to do perhaps, is to catch this exception and re-try the JMS Server 
every 30 seconds or so.

Thanks in advance
Andrew Hurst


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to