Hi Heikki;

You can do that , Apache Sandesha is doing the same thing when it
receive control messages. What you can do is , when you want to stop the
execution
  - msgCtx.setPaused(true);
  - Then send the response in side the handler , so invoke logic will
look like;
    Handler {
    invoke(MessageContext msgCtx){
       msgCtx.setPaused(true);
      // write the code for sending the response here
    }
  }

did I answer your problem ?  .....

-Deepal


heikki wrote:

> Hi there,
>
> a previous posting of mine on this from about two weeks ago was left
> unanswered that's why I'll give it another try :
>
> I would like to know whether it is possible to to stop a handler
> chain, in the middle, and return a response from the last handler that
> executed, WITHOUT throwing an AxisFault or other exception.
>
> For example, I have a handler doing some validation and when
> validation fails, I don't want to continue; but I also don't want to
> throw up: what I want to do is return a custom "normal" response,
> which maybe describes the validation failures, but is not in any way
> an "error" response.
>
> In a servlet filter chain this is very easy to do, but I haven't
> figured it out in a Axis2 handler chain. Can anyone help me?
>
> thanks and regards
> Heikki Doeleman





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

Reply via email to