Hi all ejb guru
If there are multiple caller calling SAME stateless session bean remote reference at the same time. What will happen ?
Because the stateless session bean is non-reentrant, so (1) will the subsequent calls be blocked until the first call is returned ? (2) or will all invocations be handled in parallel ? Or (3) Different instance of stateless session beans will be picked to handle the calls in parallel ?
l am certain if the invocations are made through different stateless session bean remote reference , case(3) will happen but l am not sure about invocations to SAME remote reference. It is very thankful if some guys can share with me your knowledge on this
regards
fox
Discussions
EJB programming & troubleshooting: multiple invocations to the same SLSB remote reference
-
multiple invocations to the same SLSB remote reference (3 messages)
- Posted by: dso dso
- Posted on: November 08 2002 01:42 EST
Threaded Messages (3)
- multiple invocations to the same SLSB remote reference by stephen smithstone on November 08 2002 03:31 EST
- multiple invocations to the same SLSB remote reference by dso dso on November 09 2002 01:05 EST
- multiple invocations to the same SLSB remote reference by Tomas Inger on November 11 2002 05:07 EST
-
multiple invocations to the same SLSB remote reference[ Go to top ]
- Posted by: stephen smithstone
- Posted on: November 08 2002 03:31 EST
- in response to dso dso
if i have this rite when u get a remote interfaces to a SLSB the app server creates u a new instance of that bean to use and then just recycles it to the pool for re use so u can 1-n many clients calling the method on the SLSB and the app server takes care of it all -
multiple invocations to the same SLSB remote reference[ Go to top ]
- Posted by: dso dso
- Posted on: November 09 2002 01:05 EST
- in response to stephen smithstone
dear stephen
would you mind elaborating on it further ? -
multiple invocations to the same SLSB remote reference[ Go to top ]
- Posted by: Tomas Inger
- Posted on: November 11 2002 05:07 EST
- in response to dso dso
Hi!
Somewhere is the spec. (I don't have time to find the exact section), it is said that multiple threads calling the same remote interface at the same time is an error.
You should create one remote interface for each thread!
/Tomas