This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt On Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubt On Session Bean" Watch "Doubt On Session Bean" New topic

Doubt On Session Bean

ShivPrakash Srivastava
Ranch Hand

Joined: Mar 24, 2005
Posts: 88
Hi All,

According to the specs nly one client can access a stateful seesion Bean at a time.If two client try to invoke the method on the same object concurrently then RemoteException is thrown if the client is Remote client and EJBException for the local client.

Does this apply for the stateless Session Bean as well?Is it possible that two client invoke method on the same stateless session bean instance concurrently ?

Thankx And Regards
David McDonagh

Joined: Feb 13, 2004
Posts: 19
This restriction does not apply to a stateless session bean because the container routes each request to a different instance of the session bean
I agree. Here's the link:
subject: Doubt On Session Bean
Similar Threads
EJBHomeFactory pattern and Stateless Session Bean
Stateless Session Bean access by multiple clients
7.11.8 Non-reentrant instances
Method call on session bean
How the second client knows the bean is free?