users@glassfish.java.net

Avoid Expunging ejb timer

From: <glassfish_at_javadesktop.org>
Date: Thu, 28 May 2009 01:56:09 PDT

I make an ejb timer that in ejb @timeout method call a webservice.
Sometimes the webservice calling rise an exception like: "connection refused" or "java.net.NoRouteToHostException: No route to host", so the timer after 'Maximum Redeliveries' times cancel itself (i.e expunging).

The cause of exception is in the server side (webservice owner) not in the client so I can't avoid this.
In order to avoid expunging is it possible to enclose the webservice client call in a generic try catch(Exception e) block?
[Message sent by forum member 'peppeme' (peppeme)]

http://forums.java.net/jive/thread.jspa?messageID=348045