Hi,
EJBObject and EJBHome are network visible objects(whereas bean class
is not.). Hence their base classes extend "javax.rmi.remote" whose
implementation is provided by the container.
Now referring to your question your bean remote interface extends the
EJBObject interface and the EJBObject class implements(implemented by
the container) your bean remote interace :-))
The reasons are manyfold:
**By intercepting requests, the EJB container can automatically perform
some necessary management that includes transaction logic,security
logic, bean instance pooling logic and many other logic that the
container may require.
**In short when u call create() on home interface the container creates
a EJBObject and associates it with a class instance from the pool.(the
primary key is the binding factor between the two.)
Hope this helps.
Ghosh
----- Original Message -----
From: "Ashutosh" <[EMAIL PROTECTED]>
Date: Friday, November 24, 2000 11:33 am
Subject: EJB Object implementation
> Hello all,
> I am trying to understand the concept of the EJB
> Object . I
> have the following question.
> I read that the EJBObject whose implementation is
> provided by
> the container also implements the Remote Interface.The EJB Object
> holds a
> reference to the Bean class. However, the Bean class provides the
> implementation for the business methods that are declared in the
> remoteinterface(but it does not "implement" the RI but only
> extends EntityBean).
> So, can i infer that EJBObject has an empty definition
> of the
> business methods and through these methods gives a call to the
> correspondingmethods of the bean class whenever the client invokes
> the method.
> I understand that the container provides the
> implementationof the ejb object and it could be different across
> various containers. But
> how does it work i this case???
> Thanks.
> Regards,
> Ashutosh
>
>
> ---
> To unsubscribe, mail [EMAIL PROTECTED]
> To get help, mail [EMAIL PROTECTED]
>
===========================================================================
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".