This could happen, depends on how you configured your bean.
to prevent this the client (A and B) can start a transaction before doing the first read.
And then commit the transaction after the update.
Otherwise you are in full control of the transactions that occur

Filip

Filip Hanik
Engineering Manager/Architect
XMarkstheSpot
[EMAIL PROTECTED]

Come for the cash, stay for the convenience @  http://www.XMarkstheSpot.com



"Bhattacharyya, Ana" <[EMAIL PROTECTED]>
Sent by: A mailing list for Enterprise JavaBeans development <[EMAIL PROTECTED]>

05/08/00 02:38 PM
Please respond to A mailing list for Enterprise JavaBeans development

       
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: Working with Transcations


Hi
This should not happen as the data bean ie an entity bean is locked by the
container during a transaction.
Ana

-----Original Message-----
From: Tom Jordan [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 08, 2000 5:33 PM
To: [EMAIL PROTECTED]
Subject: Working with Transcations


Hi

I was wondering if anyone can recommend or point me to a resource on
management transaction through ejbs.  In particular I would like to know how
you would handle the following scenario:

User A gets data from bean
User B gets data from a bean
User B updates the data
User A tries to update the data ends up overwriting the data from B.

First of all in EJBs, would this situation happen?  If it does, how can you
structure things such that the bean is notified of the change and does not
overwrite the data.

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

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

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