summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/branches/sca-java-1.6.2/itest/transaction/src/main/resources/definitions.xml
blob: 8aa6ba313ad7d477fb587f4bc59b4792a4b63e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?xml version="1.0" encoding="ASCII"?>
<!--
    * Licensed to the Apache Software Foundation (ASF) under one
    * or more contributor license agreements.  See the NOTICE file
    * distributed with this work for additional information
    * regarding copyright ownership.  The ASF licenses this file
    * to you under the Apache License, Version 2.0 (the
    * "License"); you may not use this file except in compliance
    * with the License.  You may obtain a copy of the License at
    * 
    *   http://www.apache.org/licenses/LICENSE-2.0
    * 
    * Unless required by applicable law or agreed to in writing,
    * software distributed under the License is distributed on an
    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    * KIND, either express or implied.  See the License for the
    * specific language governing permissions and limitations
    * under the License.    
-->
<definitions xmlns="http://www.osoa.org/xmlns/sca/1.0" targetNamespace="http://www.osoa.org/xmlns/sca/1.0"
    xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0">

    <policySet name="tuscany:ManagedTransactionPolicySet" provides="managedTransaction" appliesTo="sca:implementation.java">
        <intentMap provides="managedTransaction" default="global">
            <qualifier name="global">
                <tuscany:transactionPolicy transactionTimeout="1200" action="REQUIRE_GLOBAL" />
            </qualifier>
            <qualifier name="local">
                <tuscany:transactionPolicy transactionTimeout="1200" action="REQUIRE_LOCAL" />
            </qualifier>
        </intentMap>
    </policySet>

    <policySet name="tuscany:NoManagedTransactionPolicySet" provides="noManagedTransaction"
        appliesTo="implementation">
        <tuscany:transactionPolicy action="REQUIRE_NONE" />
    </policySet>

    <policySet name="tuscany:PropagatesTransactionPolicySet" provides="propagatesTransaction" appliesTo="sca:component">
        <tuscany:transactionPolicy action="PROPAGATE" />
    </policySet>

    <policySet name="tuscany:SuspendsTransactionPolicySet" provides="suspendsTransaction" appliesTo="sca:binding.sca">
        <tuscany:transactionPolicy action="SUSPEND" />
    </policySet>

    <policySet name="tuscany:TransactedOneWayPolicySet" provides="transactedOneWay" appliesTo="sca:binding.sca">
        <tuscany:transactionPolicy action="PROPAGATE" />
    </policySet>

    <policySet name="tuscany:ImmediateOneWayPolicySet" provides="immediateOneWay" appliesTo="sca:binding.sca">
        <tuscany:transactionPolicy action="SUSPEND" />
    </policySet>

    <intent name="managedTransaction" constrains="implementation">
        <description>Used to indicate the transaction environment desired by a component implementation.</description>
    </intent>
    <intent name="managedTransaction.global">
        <description>
            Used to indicate that a component implementation requires a managed global transaction.
        </description>
    </intent>
    <intent name="managedTransaction.local">
        <description>
            Used to indicate that a component implementation requires a managed local transaction.
        </description>
    </intent>
    <intent name="noManagedTransaction" constrains="implementation">
        <description>
            Used to indicate that a component implementation will manage its own transaction resources.
        </description>
    </intent>
    <intent name="propagatesTransaction" constrains="binding">
        <description>
            Used to indicate that a reference will propagate any client transaction or that a service will be dispatched
            under any received transaction.
        </description>
    </intent>
    <intent name="suspendsTransaction" constrains="binding">
        <description>
            Used to indicate that a reference will not propagate any client transaction or that a service will not be
            dispatched under any received transaction.
        </description>
    </intent>
    <intent name="transactedOneWay" constrains="binding">
        <description>
            Used to indicate that the component requires the SCA runtime to transact OneWay send of messages as part of
            any client global transaction or to transact oneWay message receipt as part of any service global
            transaction.
        </description>
    </intent>
    <intent name="immediateOneWay" constrains="binding">
        <description>
            Used to indicate that the component requires the SCA runtime to process the sending or receiving of OneWay
            messages immediately, regardless of any transaction under which the sending/receiving component runs.
        </description>
    </intent>

</definitions>