Hi All,
Currently in all connectors we are using call mediator almost in every
method. Sometimes there is a requirement to use the call mediator in
blocking mode within connectors.
If we need to do that we may have to modify the connectors like following
using filter mediator.
Shall we introduce a property(synapse level) to control this behavior from
ESB 5.0.0? or are there any better solutions?
<filter source="$ctx:SALESFORCE_BLOCKING" regex="true">
<then>
<call blocking="true">
<endpoint>
<default format="soap11">
<timeout>
<duration>60000</duration>
<responseAction>fault</responseAction>
</timeout>
<suspendOnFailure>
<initialDuration>2000</initialDuration>
<progressionFactor>1.0</progressionFactor>
<maximumDuration>3000</maximumDuration>
</suspendOnFailure>
</default>
</endpoint>
</call>
</then>
<else>
<call>
<endpoint>
<default format="soap11">
<timeout>
<duration>60000</duration>
<responseAction>fault</responseAction>
</timeout>
<suspendOnFailure>
<initialDuration>2000</initialDuration>
<progressionFactor>1.0</progressionFactor>
<maximumDuration>3000</maximumDuration>
</suspendOnFailure>
</default>
</endpoint>
</call>
</else>
</filter>
Best Regards,
Malaka Silva
Senior Tech Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/
WSO2, Inc.
lean . enterprise . middleware
http://www.wso2.com/
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/
Save a tree -Conserve nature & Save the world for your future. Print this
email only if it is absolutely necessary.
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture