It depends on the Application Server you are using.

Weblogic 5.1 - One instance of EJBObject for every unique primary key of Entity bean 
in a single JVM. - known as container pessimistic locking.
Weblogic 6.1 - There could be multiple instance of EJBObject for every unique primary 
of Entity bean in a single JVM. - container Optimistic locking.


Almost all other application server implement container Optmisitic locking.
As container perssimistic locking might cause deadlock and forcing container to abort 
transaction.

Thank you


---------------------------------------- Message History 
----------------------------------------


From: [EMAIL PROTECTED]@JAVA.SUN.COM on 10/08/2001 06:17 PM ZE5B

Please respond to [EMAIL PROTECTED]

DELEGATED - Sent by:     [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:
Subject:  Can Same entity bean object Associated with more than one              
EJBObject ???


I'm pretty confused as to whether same instance of entity bean object in
the container can be bound with more than
on EJBObject (and hence available to more than one clients) at the same
time.

There can be multiple instances of Entity bean representing the same
data in DB to serve different
clients but is above statement also holds true at times ?

TIA
Nikhil.

=====================================To unsubscribe, send email to 
[EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".




--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to