Yes,
An instance of a session bean receiving calls from remote
clients in
different threads will throw a RemoteException.
See excerpt below from EJB 2.0 spec:
7.11.8 Non-reentrant instances
The container must ensure that only one thread can be executing an
instance at any time. If a client
request arrives for an instance while the instance is executing another
request, the container may throw
the java.rmi.RemoteException to the second request if the client is a
remote client, or the
javax.ejb.EJBException if the client is a local client.[6]
Note that a session object is intended to support only a single client.
Therefore, it would be an
application error if two clients attempted to invoke the same session
object.
One implication of this rule is that an application cannot make loopback
calls to a session bean instance.
Regards
DGA
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development [mailto:EJB-
> [EMAIL PROTECTED]] On Behalf Of Catalfano Anthony
> Sent: 22 February 2002 17:29
> To: [EMAIL PROTECTED]
> Subject: [EJB-INT] multithreaded clients sharing a remote ref to a
> Stateless Session Bean
>
> Is there a problem doing this?
> Thanks
>
> Anthony Catalfano
> Information Technology Analyst
> Deere & Company
> 309-748-5201
>
>
========================================================================
==
> =
> 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".