org.apache.openejb.core.transaction
Class JtaTransactionPolicyFactory

java.lang.Object
  extended by org.apache.openejb.core.transaction.JtaTransactionPolicyFactory
All Implemented Interfaces:
TransactionPolicyFactory

public class JtaTransactionPolicyFactory
extends Object
implements TransactionPolicyFactory


Constructor Summary
JtaTransactionPolicyFactory(TransactionManager transactionManager)
           
 
Method Summary
 TransactionPolicy createTransactionPolicy(TransactionType type)
          Creates and begins a TransactionPolicy for the specified TransactionType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JtaTransactionPolicyFactory

public JtaTransactionPolicyFactory(TransactionManager transactionManager)
Method Detail

createTransactionPolicy

public TransactionPolicy createTransactionPolicy(TransactionType type)
                                          throws SystemException,
                                                 ApplicationException
Description copied from interface: TransactionPolicyFactory
Creates and begins a TransactionPolicy for the specified TransactionType. If this method returns successfully, the specfied transaction type is active and must be committed.

Specified by:
createTransactionPolicy in interface TransactionPolicyFactory
Parameters:
type - the desired type of transaction
Returns:
the active TransactionPolicy
Throws:
SystemException - if an unrecoverable exception is encountered
ApplicationException - if recoverable exception is encountered


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.