5 Replies Latest reply on Jun 9, 2007 3:47 AM by Mark Little

    Transaction control across multiple threads

    Chi-Yu Ho Newbie

      Is it possible to to use UserTransaction to control database operations across multiple threads:

      In main thread:

      userTrx = getUserTransaction();

      create one or more worker thread to read/write to the database.

      wait till all worker thread are done.

      userTrx.commit or rollback.