JBoss Community

@WebServiceClient : How to handle connect exception ?

created by David CARRERAS in JBoss Web Services - View the full discussion

I am using the @WebServiceClient annotation generated by wsconsume.

 

Everything inocation on the remote WS are ok, but when the remote WS is down i don't know how to catch (handle) exception (mainly the connect exception). I see the exception in the Jboss console (and log file).

 

I'd like to catch exception in my service (which call the WebServiceClient) and prevent the whole stack trace exception in the log file.

 

I read the user guide and i saw a chapter about handlerchain is it the way to do exception handling ? Which handler type should i use (log, RoutingHandler ...) ?

 

Regards.

Reply to this message by going to Community

Start a new discussion in JBoss Web Services at Community