1. syn/Asyn to syn we have single transaction.
if both the services have their own DB adapters(XA enable JNDI), now both will be
in same transaction. these adapters will participate in 2Phc.
2. syn/Asyn to Asyn we have different transactions.
if both the services have their own DB adapters (XA enable JNDI), now two adapters have
two different 2phc.
properties:
<component name="InternalWarehouseService">
<implementation.bpel src="InternalWarehouseService.bpel"/>
<property name="bpel.config.transaction" many="false" type="xs:string">required | requiresNew</property>
</component>
=================================================================
required:
which makes BPEL inherit the tx that is already there, or if not creating a new one
requiresNew:
suspending one if exists, and ALWAYS create a new one
=================================================================
No comments:
Post a Comment