Friday, September 2, 2011

Avoiding network overhead when interacting a partner services via BPEL

If you have deployed your BPEL process and it’s partner services on the same WSO2 Carbon instance, you can avoid the network overhead using usePeer2Peer=”false” for the particular partner interaction in deploy.xml. The default value is “true”. Here’s a sample.

<?xml version="1.0" encoding="UTF-8"?>
<deploy xmlns="http://www.apache.org/ode/schemas/dd/2007/03"
xmlns:psns="http://FunctionProcess.bpel">
<process name="psns:FunctionProcess">
<provide partnerLink="FunctionProcessPartnerLink">...</provide>
<invoke partnerLink="SquarePartnerLink" usePeer2Peer="false">...</invoke>
</process>
</deploy>
view raw gistfile1.xml hosted with ❤ by GitHub

No comments: