Hello Rohit,

> EJB specifications suggests that EJB's are thread safe ..Two clients cannot access 
>the same method of the same EJB object simultaneouly.
> Can two threads of a same client access same method of a stateless session bean 
>(same EJB Object) simultaneously?

The spec does not suggests EJBs are thread safe, but says that clients
are not allowed to make concurrent calls to stateful session objects.
This means the EJB developer does not need to make his SFSBs thread
safe. The container could throw an exception if you try to make
concurrent calls, or queue the requests.
For SLSBs the container will route each request to a different SLSB
instance, so you don't need to make their methods thread-safe either.

That's my interpretation of Section 7.5.6 in the EJB 2.0 spec.

Regards,
Dies

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