You will never have concurrent calls into the same instance of your
bean implementation. The container handles concurrency, so you don't
have to. It will create a new instance of your bean when needed.

Frank

> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Perry Hoekstra
> Sent: Monday, July 17, 2000 3:39 PM
> To: [EMAIL PROTECTED]
> Subject: Multi-Threaded Protection within a SSB
>
>
> Greet the sun all,
>
> I have a question dealing with multi-client access to a Stateless
> Session Bean.  I have an SSB that holds onto a collection of
> work steps,
> each step an instance of a Java helper class.
>
> Client A makes a request against the SSB.  Internally, the request is
> processed against the series of worksteps in the collection.
> Client B makes a request against the SSB.  Again, the request is
> processed against the series of worksteps in the collection.
>
> If each request makes the same method call on the same helper instance
> at the same time (good possiblity with a large number of clients), is
> there any protection from one request stepping on the other as long as
> the helper method called accesses no instance variables within the
> helper class?  Do I have the possibility of concurrent accesses to the
> helper method stepping on each other within the method?
>
> I did not get a good handle on an answer in Monson-Haefel's
> book nor did
> a search on the archives really address this question.
>
> Thoughts?
>
> --
> Perry Hoekstra
> Consultant
> Talent Software Solutions
> [EMAIL PROTECTED]
>
> ==============================================================
> =============
> 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