0 Replies Latest reply on Sep 15, 2014 1:19 AM by takeshinho

    Is JBoss UserTransaction thread safe?

    takeshinho

      Hi all,

      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.