I have a BMP entity bean that I am trying to test, but after I create the 
entity a lock on the entity prevents subsequent methods calls.  Here is a 
typical scenario of my problem:

1. Prior to actually creating the entity I get the following output from 
JBoss: "[TheOrder] EnterpriseContext.lock() 2736644 1"
2. Then the entity is created.
3. Another lock is placed with the following message:
"[TheOrder] EnterpriseContext.lock() 2736644 2"  followed immediately by an 
unlock like so, "[TheOrder] EnterpriseContext.unlock() 2736644 1."  I assume 
the "1" and "2" represent locks on the context for the entity bean.

This process is repeated 10 times for each new entity bean.

4. Then when I try to call a method on the first entity bean I get the 
following: "[TheOrder] EnterpriseContext.isLocked() 2736644 at 1"

The transaction finally times out.


I'm not too familiar with how JBoss handles locking across entity beans.  
Could someone please explain what I am seeing?  Is this a programming error 
or a problem with the container?

Thanks in advance,

Brett



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to