> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]

> and abt my response my point was whatever he believes in a or b his doubt
> abt transactions should be cleared so i said right, whatever way u want to
> believe is right.

I had to read this paragraph several times before I understood what you are saying
here.  Could you please refrain from using abbreviations such as "abt" and "u", it
only makes people want to delete your message and go to the next one.

As for the original question:

> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mageshkumar Maruthapillai

> a. in the ejb server, there will be 5 corresponding ejbObjects for the 5
> client respectively.
> b. all the 5 ejbObjects will reference the same instance(one) of the entity
> bean representing that record.

Scenario a) will happen if optimistic locking is being used, and b) if
pessimistic.  Note that on a clustered server, it will probably always be
optimistic.

> If the above is true, and certainly what I believe in. Then how is
> synchronization between
> difference ejbObjects making changes to the same entity bean implemented.

Then again, it depends on the kind of locking.  Optimistic will defer this
decision to the database, pessimistic will prevent more than one client to lock a
PK at a time.

--
Cedric

===========================================================================
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