diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java')
-rw-r--r-- | sca-java-2.x/trunk/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java b/sca-java-2.x/trunk/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java index 726d3e7c91..23c25c9b8a 100644 --- a/sca-java-2.x/trunk/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java +++ b/sca-java-2.x/trunk/modules/policy-transaction-runtime/src/main/java/org/apache/tuscany/sca/policy/transaction/runtime/TransactionPolicyProviderFactory.java @@ -19,7 +19,6 @@ package org.apache.tuscany.sca.policy.transaction.runtime; -import javax.transaction.TransactionManager; import org.apache.tuscany.sca.assembly.Endpoint; import org.apache.tuscany.sca.assembly.EndpointReference; import org.apache.tuscany.sca.core.ExtensionPointRegistry; @@ -39,8 +38,7 @@ public class TransactionPolicyProviderFactory implements PolicyProviderFactory<T public TransactionPolicyProviderFactory(ExtensionPointRegistry registry) { super(); UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); - TransactionManager tm = utilities.getUtility(TransactionManager.class); - this.helper = new TransactionManagerHelper(tm); + this.helper = utilities.getUtility(TransactionManagerHelper.class); } public PolicyProvider createImplementationPolicyProvider(RuntimeComponent component) { |