1 Reply Latest reply on Jun 8, 2004 10:32 AM by Collin

    releasing a bean lock

    ittay Newbie


      Can I explicitely release a bean's lock when working in a transaction (assuming I know what I'm doing of course)? Is there a way of explicitely acquiring the lock (without the need to access a method)?


        • 1. Re: releasing a bean lock
          Collin Novice

          If you need to temporarily modify an entity outside of the context of a current transaction, I believe you'd need to do it using a method invocation tagged as "RequiresNew".

          Of course, make sure your existing transaction would not have already enrolled the bean lest you achieve deadlock.