You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Se...@wettschereck-partner.de on 2002/12/18 12:13:16 UTC
Stopping the process of invocation by a Handler
Hi there,
how can stop the process of invocation with the help of a handler?
I deployed a handler in the request-flow of the server that should check,
whether a database-connection is established. If established, nothing
special should happen, but the original request is performed. If no
connection is available inside the session the processing has to stop. The
only way I found out to stop is throwing an Exception(AxisFault).
That would normally be okay, but I didnt manage to catch that Exception
properly. The program is not terminated, but the stacktrace is printed. The
try-catch(AxisFault)-statement I put around the call.invoke()-statement. I
think that is supposed to be the right place to do.
What are my alternatives to do what I want to do? Define something like a
try-catch inside the wsdd? Is there a stop-process-method I can call inside
the invoke-method of my Handler? Or do I have to catch the Axis-Fault at
another place in my client-code?
help is, as always, appreciated...
Greetings from Hamburg/Germany
Sebastian Beyer
Re: Stopping the process of invocation by a Handler
Posted by Toshiyuki Kimura <ki...@nttdata.co.jp>.
Hello Sebastian,
> how can stop the process of invocation with the help of a handler?
As you may know, AXIS has two implementations of "handler"; AXIS and
JAX-RPC. The easiest way what you want to do is JAX-RPC imp., I think.
Because the JAX-RPC ver 1.0 specifies the sequence of HandlerChain
(includes stopping the HandlerChain and the target service endpoint).
But, please note that the current version of AXIS (1.1 Beta) has a
bug related the way of using above. I've already posted it to Bugzilla
(the Apache bug database).
You can refer the detail of the bug at the following site:
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15478>
I hope this helps you.
Best Regards,
Toshiyuki Kimura <ki...@nttdata.co.jp>
R&D Headquaters
NTT DATA Corporation