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

    releasing a bean lock

    ittay

      Hi,

      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)?

      Thanx,
      Ittay

        • 1. Re: releasing a bean lock
          cvandyck

          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.