0 Replies Latest reply on Mar 23, 2008 7:17 PM by Ken Clark

    Managing unique value per JTA transaction

    Ken Clark Newbie

      I have a stateless session bean that manages data access (used by other SLSBs or SFSBs which I have as Seam managed beans).

      I need to generate a unique value for each JTA transaction that goes through it.  I am getting the unique value by selecting from a database sequence, which works fine (and which I want to continue doing.)

      The question is, what is n elegant way to manage tying this to a JTA transaction?

      Right now I have the user SBs calling a reset method when they are done, but this will only work in a test environment.

      Any ideas?