Hi Subhendu,

        Maybe it would be a good idea to use 2 ejbs, one for the statefull
scenario, and one for the stateless scenario.

        Regards,
                Dimitar

-----Original Message-----
From: subhendukumar mohanty [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 9:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Stateful session bean thread issue

Hi,

I have designed a Stateful bean , which is required to be statefull in one
of my scenario. In other scenario i does not care about the state , so i
want to invoke the methods on it. So if user clicks in a link wich invokes
the first scenario, which creates the statefull bean. If at the same time
user clicks some other link which invokes only the method of the same bean
it  gives error.

Is there any suggestion to design this type of scenario??

Thanks,
Subhendu

-----Original Message-----
From: Ashwani Kalra [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 11, 2002 11:59 PM
To: [EMAIL PROTECTED]
Subject: Re: Stateful session bean thread issue


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

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