Article:
  JBoss Optimizations 101
Subject:   Are ALL polled instanced locked?
Date:   2003-05-30 16:47:21
From:   anonymous2
In the "Heavy Locking" section you mentioned that "By Default, JBoss uses pessimistic locking. An entity bean that is enrolled in a transaciton cannot be used by another transaction until the one that uses the bean has commited or rolled back".


Since entity bean instances are pooled, are all instances locked, or just the one from the pool that the particular transaction is utilizing?

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Are ALL polled instanced locked?
    2003-05-31 01:14:11  anonymous2 [View]

    Once the entity bean instance is used in a transaction, it means it has an identity associated with it (=> it represents a specific row of a DB for example) and is thus no more in the pool.

    Consequently, only this particular entity bean instance is locked: there is no reason why entities in the pool (that are associated with NO identity) should be locked.

    Cheers,


    sacha