On Thu, 27 Jul 2000 15:03:18 +0530, vinod <[EMAIL PROTECTED]> wrote:
>        I am writing an entity (BMP) ejb in which multiple users may be
>accessing the ejb.  I have a very long transaction and at the end only I
>issue the commit. What happens one user commits his transaction when another
>user is at the middle of his transaction?  How such issues should be
>handled?

This is a frequently asked question. Please search archives
(archives.java.sun.com) for "long transactions" and "soft locks".
Comprehensive discussions/answers are available.

Basically, don't use regular transactions to solve your problem, but
instead use a soft lock to make sure only one person can use a
particular entity at any time.

/Rickard

--
Rickard �berg

Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.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".

Reply via email to