>
> > > Q1> Now if I again invoke the another method of the objRef then does
the
> > > invocation goes to the same EJBObject instance everytime??
> > > OR it goes to a diffrent EJBObject instance??
> > > The spec says that a client cant assume that the same bean instance
will
> > > service it every time. But can the same EJBObject instace
> > > service it everytime if the objref used is the same??
> >
> > Need not, because the bean above is stateless.
>
> Could you please explain this a little bit?
>
> My understanding so far was, that the EJBObject is the entity that
maintains the
> actual connection to the client.

Sorry for my lack of clarity. I was confused by the question.

In Anamitra's example, what's the EJBObject? The home.create() returns an
object that implements the EJBObject (and the remote interface). So, what
create() returns is the container-generated stub. So, the variable
"register" refers to this stub, and it's the same as long as the client
holds it.

And you're right in saying that, for the client, this EJBObject holds the
connection (loosely speaking).

> So I thought, that during the lifetime of a 'session', a client always
talks to
> one specific instance of an EJBObject for every EJB it has a reference to.

Regards,

Subbu

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