org.apache.openejb.core.transaction
Interface TransactionPolicyFactory

All Known Implementing Classes:
JtaTransactionPolicyFactory, SpringTransactionPolicyFactory

public interface TransactionPolicyFactory

TransactionPolicyFactory creates TransactionPolicy implementations.


Method Summary
 TransactionPolicy createTransactionPolicy(TransactionType type)
          Creates and begins a TransactionPolicy for the specified TransactionType.
 

Method Detail

createTransactionPolicy

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

Parameters:
type - the desired type of transaction
Returns:
the active TransactionPolicy
Throws:
ApplicationException - if recoverable exception is encountered
SystemException - if an unrecoverable exception is encountered


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