Hi, Why do you need concurrent access to the the bean. If you still need, then put the calls to the bean in the synchronised block.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Thanks Ashwani Kalra http://www.geocities.com/ashwani_kalra/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: A mailing list for Enterprise JavaBeans development [mailto:[EMAIL PROTECTED]]On Behalf Of subhendukumar mohanty Sent: Friday, April 12, 2002 12:52 AM To: [EMAIL PROTECTED] Subject: Stateful session bean thread issue Hi, I am using stateful session bean in my project. When one of the thread tries to access one of the method of the bean when another thread is using some other method of the bean , it gives ejbreeentrant exception. I would like to know why it is happening and how to prevent second thread from using the bean when other thread is accessing it. Thanks, Subhendu ========================= 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".
