/** * Begin of transaction must be performed with mutual exclusion in one thread * because the registration service cannot begin more transactions concurrently. */ private static synchronized void begin(UserTransaction tx) throws WrongStateException, SystemException{ tx.begin(); }