org.yajul.jta
Class TransactionHelper

java.lang.Object
  extended by org.yajul.jta.TransactionHelper

public class TransactionHelper
extends java.lang.Object

IoC template for bean managed transactions or for using JTA outside of the EJB container. (IoC = Inversion of Control for those of you who don't know what IoC is)
User: josh Date: Nov 30, 2007 Time: 4:01:17 PM


Nested Class Summary
static interface TransactionHelper.Action
           
 
Constructor Summary
TransactionHelper()
           
 
Method Summary
static java.lang.Object doInTx(javax.transaction.UserTransaction ut, TransactionHelper.Action action)
           
static java.lang.Object handleException(javax.transaction.UserTransaction ut, java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionHelper

public TransactionHelper()
Method Detail

doInTx

public static java.lang.Object doInTx(javax.transaction.UserTransaction ut,
                                      TransactionHelper.Action action)

handleException

public static java.lang.Object handleException(javax.transaction.UserTransaction ut,
                                               java.lang.Exception e)


Copyright © 2008. All Rights Reserved.