You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Hans-Peter Schmidt <ch...@mail.com> on 2009/05/25 16:41:55 UTC

AxisFault handling in BPEL

Hello,

i was wondering, how you could throw faults in a BPEL process in reaction
to an axisfault?
For example, i try to invoke a service but get a timeout after 60 seconds
or an error 404 when the service is not reachable.
An AxisFault is generated like:

org.apache.axis2.AxisFault: Read timed out
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
    at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195)
...

Now, if i check the status of the process instance, it is still active.
I want it to terminate with the status FAILURE or something.
Also, throwing a Fault after receiving such an exception from axis would
help me out.
This way i could react to those exceptions/faults using catch blocks.
For now, i can only catch exceptions thrown by the service i try to
invoke, but not the axis(ode/tomcat) exceptions/faults.

Basicly what i want is a way to handle AxisFaults in a BPEL Process.

ODE Version = 1.3.2
Tomcat Version = 6.0.18

Thanks in Advance!

-- 
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com