I need to control database transaction without using SessionContext or EJB transaction annotation.
Now I'm planning to get UserTransaction from InitialContext#lookup.
But it seems like all threads are accessing to same only one UserTransaction instance.
I should know whether database transactions will be provided per thread or not.
Farther, I'll be glad someone can tell me what is the best way
if above doesn't provide per thread transaction.
Retrieving data ...