« Return to Thread: how to handle exception in aix:outbound service

Re: how to handle exception in aix:outbound service

by antoine.borg :: Rate this Message:

Reply to Author | View in Thread

The code you have here does not have an exception strategy at all ...
where do you think you are catching it?

You can read up on exception strategies here:
http://ricston.com/blog/?p=300 and there are some code samples on the
MuleSource wiki here:
http://www.mulesource.org/display/MULE2USER/Error+Handling

A

dp mallia wrote:

> i tried with below code but not able to catch the exception. can u help me how to define the exception block for below code.
>
> <service name="expservice">
> <inbound>
> <stdio:inbound-endpoint system="IN"/>
> </inbound>
> <outbound><forwarding-catch-all-strategy>
>
> <vm:outbound-endpoint path="caseCompletionService" />
> </outbound>
> <async-reply>
> <inbound-endpoint address="vm://ProcessAlert-reply"/>
> <single-async-reply-router/>
> </async-reply>
>
> </service>
>
> <service name="caseCompletion">
> <inbound>
> <vm:inbound-endpoint path="caseCompletionService" synchronous="true"/>
> </inbound>
> <outbound>
> <outbound-pass-through-router>
> <outbound-endpoint ref="esbShowCaseProcess"/>
> </outbound-pass-through-router>
> </outbound>
> </service>
>
> <service name="fromBPM">
> <inbound>
> <inbound-endpoint ref="esbShowCaseProcess" synchronous="true" />
> </inbound>
> <outbound>
> <outbound-pass-through-router>
> <outbound-endpoint address="vm://openServiceCall"/>
> <reply-to address="vm://ProcessAlert-reply" />
>
> </forwarding-catch-all-strategy>
> <static-recipient-list-router>
>
> <vm:outbound-endpoint path="errorHandler"></vm:outbound-endpoint>
> <payload-type-filter expectedType="java.lang.Exception" />
>
> </static-recipient-list-router>
> </outbound-pass-through-router>
>
> </outbound>
> </service>
>
> <service name="openServiceCall">
>
> <inbound>
> <inbound-endpoint address="vm://openServiceCall" transformer-refs="StringToObjectArray"
> synchronous="true" />
> </inbound>
>
> <outbound>
> <outbound-pass-through-router>
> <axis:outbound-endpoint address="http://localhost:8080/Web/services/webUpdate?method=updateInfo"
> style="RPC" responseTransformer-refs="ToString"
> soapAction="methodNamespacemethod" synchronous="true">
> <axis:soap-method method="qname{updateInfo:{http://localhost:8080/Web/services/webUpdate}">
> <axis:soap-parameter parameter="token" type="string" mode="IN"/>
> <axis:soap-parameter parameter="username" type="string" mode="IN"/>
> <axis:soap-parameter parameter="alertid" type="string" mode="IN"/>
> <axis:soap-parameter parameter="action" type="string" mode="IN"/>
> <axis:soap-parameter parameter="comment" type="string" mode="IN"/>
> <axis:soap-parameter parameter="updateInfoResponse" type="string" mode="OUT"/>
> </axis:soap-method>
> </axis:outbound-endpoint>
> </outbound-pass-through-router>
> </outbound>
> </service>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>
>  

--

Antoine Borg, Senior Consultant | Tel: +32 28 504 696
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM

See our full schedule of Mule and Android courses:
http://www.ricston.com/courses/schedules/

email: _antoine.borg_@... <mailto:antoine.borg@...> |
blog: blog.ricston.com <http://blog.ricston.com> | web: ricston.com
<http://www.ricston.com/>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: how to handle exception in aix:outbound service