Hi,
you can do this by simply including the bean in a transaction.
According to the EJB specification, once a bean is included in a transaction
no other thread can access it until the transaction commits or ends.
Tolu Agbeja
HLD BT [Concert]
Tel: 770-801-4549
Tel: 770-801-2549



-----Original Message-----
From: kavitha ramasamy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 01, 1999 11:02 AM
To: [EMAIL PROTECTED]
Subject: how to make a lock on the bean


Hi friends,

     I need to set a lock on the particular bean.
Once a particular user locked that bean, the same user cannot make a lock on
that?

How can I achieve this?

Any help appreciated
Thanks
kavitha

______________________________________________________
Get Your Private, Free Email 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".
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

http://www.concert.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