Allow transaction policy sets to be used with external attachment

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@964066 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
bdaniel 2010-07-14 14:43:41 +00:00
parent e8b380a59b
commit 94c4934efc

View file

@ -22,7 +22,7 @@
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1">
<policySet name="ManagedTransactionPolicySet" provides="managedTransaction" appliesTo="implementation">
<policySet name="ManagedTransactionPolicySet" provides="managedTransaction" appliesTo="implementation" attachTo="IntentRefs('sca:managedTransaction')">
<intentMap provides="managedTransaction">
<qualifier name="global"> <!-- default="true" -->
<tuscany:transactionPolicy transactionTimeout="1200" action="REQUIRE_GLOBAL" />
@ -34,23 +34,23 @@
</policySet>
<policySet name="NoManagedTransactionPolicySet" provides="noManagedTransaction"
appliesTo="implementation">
appliesTo="implementation" attachTo="IntentRefs('sca:noManagedTransaction')">
<tuscany:transactionPolicy action="REQUIRE_NONE" />
</policySet>
<policySet name="TransactedOneWayPolicySet" provides="transactedOneWay" appliesTo="binding">
<policySet name="TransactedOneWayPolicySet" provides="transactedOneWay" appliesTo="binding" attachTo="IntentRefs('sca:transactedOneWay')">
<tuscany:transactionPolicy action="PROPAGATE" />
</policySet>
<policySet name="ImmediateOneWayPolicySet" provides="immediateOneWay" appliesTo="binding">
<policySet name="ImmediateOneWayPolicySet" provides="immediateOneWay" appliesTo="binding" attachTo="IntentRefs('sca:immediateOneWay')">
<tuscany:transactionPolicy action="SUSPEND" />
</policySet>
<policySet name="PropagatesTransactionPolicySet" provides="propagatesTransaction" appliesTo="binding">
<policySet name="PropagatesTransactionPolicySet" provides="propagatesTransaction" attachTo="IntentRefs('sca:propagatesTransaction')" appliesTo="binding">
<tuscany:transactionPolicy action="PROPAGATE" />
</policySet>
<policySet name="SuspendsTransactionPolicySet" provides="suspendsTransaction" appliesTo="binding">
<policySet name="SuspendsTransactionPolicySet" provides="suspendsTransaction" appliesTo="binding" attachTo="IntentRefs('sca:suspendsTransaction')">
<tuscany:transactionPolicy action="SUSPEND" />
</policySet>