How are your helper methods defined. If they are simply methods in your
bean, or classes that are instantiated in your bean, then all is OK.
If they are some kind of singleton object in your bean, then you have to
handle concurrency.
Remember, only one client thread can be in a stateless session bean instance
at any one time. Matter of fact, the same is true for stateful session
beans, and entity beans.
jim
----- Original Message -----
From: "Perry Hoekstra" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 17, 2000 3:39 PM
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".