-
1. Re: Failover for invoke activities
mbaluch Oct 21, 2011 3:46 PM (in response to anujbhatia)Hi Anuj,
your scenario is completely valid and I can confirm that it works - we tested it on Riftsaw 2.3.1 Final. In my experience you need to reconfigure the default failure handling on the invoke activity for the failover to work. Please see bellow. Also please note that failover may take longer because of the preset mex.timeout.
Invoke from our test:
{code}
<bpel:invoke name="invokeOk" partnerLink="external" operation="reportResultAndAttemptJvmKill" portType="ns1:NotificationWS" inputVariable="okRequest" outputVariable="invokeOutput">
<ext:failureHandling xmlns:ext="http://ode.apache.org/activityRecovery">
<ext:faultOnFailure>false</ext:faultOnFailure>
<ext:retryFor>3</ext:retryFor>
<ext:retryDelay>5</ext:retryDelay>
</ext:failureHandling>
</bpel:invoke>
{code}
For more info on activity failure/recovery please see: http://ode.apache.org/activity-failure-and-recovery.html
Hope this helps.
Regards
Marek
-
2. Re: Failover for invoke activities
anujbhatia Oct 22, 2011 2:30 AM (in response to mbaluch)Thanks for confirming and providing this additional info Marek. I'll do some more testing and give an update.
-
3. Re: Failover for invoke activities
jeff.yuchang Oct 23, 2011 9:15 PM (in response to anujbhatia)Yeah, please use the acvitity recover feature that Marek suggested for this case. INVOKE and WAIT activity has been implemented differently here.