Nitin:

The container doesn't use the same bean for all requests.  The Home
interface is coupled with a bean from the pool (or one is created from
scratch) for each user.  So, if you have multiple people talking to the same
home interface, they will each get an instance of the bean to act as a
factory.

So, you don't have to make the bean thread safe.  :-)


Jonathan Baker
Internet Applications Division
Sybase



Nitin Kumar wrote:
>
> Hi All
>
> A quick question, when we lookup the Home Object from the Client code for a
> particular bean, if we use the same "HomeName" in the lookup, all the clients
> would bind to the Same Remote Object Instance. Since one unique name in the
> JNDI can refer to one object, I am assuming my understanding is true.
>
> If my understanding is write, then this means that all clients invoke methods
> on the same instance, is this thread safe, and what about performance, is this
> an issue? Any inputs on this would be great.
>
> Nitin
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
>
> ===========================================================================
> 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".

Reply via email to