Tom,

More than likely you would not hold onto database connections and
transactions across these use cases. There for a level of application
detected currency conflict is required. This is one of the many patterns we
have identified in our Developer's Guide (http://www.gemstone.com/). Also
there is stuff in the archives for this list on this topic.

The EJB server can do it for you if you hold onto the transactions/database
connections. But this is a Bad idea in a large scale system.

-Chris.

> -----Original Message-----
> From: Tom Jordan [SMTP:[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