In discussion http://community.jboss.org/thread/153003 there was a suggestion to use:
UserTransaction utx = null;
utx = (javax.transaction.UserTransaction) dic.lookup("UserTransaction");
utx.begin();
lookup instead
UserTransaction.userTransaction().begin();
Is it a performance difference between these methods? In first method we have to additionaly retrieve initial context. As I understand each time I start new transaction it is necessary to make lookup("UserTransaction") but initial contex can be stored in static value ,am I right?