Hi,
EJBObjects:
The client does not invoke a method directly on the actual bean instance.
Instead, the call is intercepted by the container and =
delegated to the bean instance. Reasons:
1. The EJB is not network enabled and the container handles the networking
for it (by wrapping the bean in a network enabled object).
2. The Container can implement Security, Pooling, Transaction Management
logic to the request.
3. The Container can track all the methods that were called on the bean,
load balance etc.
The EJBObject is a (surrogate) object that knows about management, security
etc. It performs the logic that the container requires before a method is
serviced by a bean class instance. All EJBObjects have container specific
code inside them.
EJBHome:
The client cannot invoke an EJBObject directly as they are on separate
machines. Alos the EJB Specification espouses location transparency - =
the client should not be aware where the EJBObject exists.
To acquire an EJBObject, the client requests the EJBObjectFactory for an
EJBObject. This factory - which is responsible for creating and =
destroying EJBObjects, is called Home Object.
Guess this will shed some light.
Nitin
----- Original Message -----
From: "Ripan Bansal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 12:18 PM
Subject: Newbie Question
> I am new to all this stuff. I have just started learning EJB due to my
> project requirements. I have a very basic question regarding the design
of
> the EJB architecture. I want to know why do we need to have EJBHome and
> EJBObjects? Why can't we do away with just one object implemented by the
> proprietry Application server.
>
> Suggest me some good material to start with. Any pointers in this regard
are
> highly appreciated.
> Thanks
> Ripan
>
>
===========================================================================
> 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".