Normally it is available for injection so simply inject it into your servlet Le 7 oct. 2012 07:15, "debalguha" <[email protected]> a écrit :
> Hi Romain, > > Did all that you have suggested. Now in my servlet, how do I get a handle > to > the UserTransaction object, I have not declared/bound that to JNDI. The > link > http://tomee.apache.org/containers-and-resources.html does not talk > anything > about declaring UserTransaction as a resource. > > Or do you rekon, I have to create it manually inside my servlet and enlist > the resources and programatically begin/end/commit/rollback the > transactions? > > Would be great if somebody shares a small demo web app along with config > details. > > Thanks > > > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/Using-Transaction-support-of-TOMEE-tp4657810p4657834.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >
