Hi,
Please see the mail from Nitin Goyal, you must have got it few moments
earlier.
EJBObjects is a object that sits between the bean object and the client. All
the interactions between the client and bean object are through this
EJBObject. Since, EJBObject sits between the two it is capable of performing
some intelligent work like managing transactions, security etc which
otherwise you have to take care. This is just a programming model or
architecture. There is no technical reason that only this solution is
possible. You could have coded the entire network enabled bean object of
your own without ever worrying about the container or having EJBObject in
between. But it is always advisable to use the existing infrastructure and
concentrate on the business logic rather than re-inventing the wheel and
writing the system level services by ourself.
EJBObject and bean object are completely different, bean is something which
you code as a developer and you are responsible for its code and the work
responsibilites. I mean to say that bean has a specific objective to achieve
like business logic. But the business logic object requires some services
for its safe operation and these services are provided by the container and
you as a programmer take advantage of these services by coding according to
the specification advocated by the particular container. Container
accomplish this by having a EJBObject for each and every bean object
deployed with it. EJBObject is implemented by the container itself and it is
completely container dependent.
For practical purposes there is no difference between the container and the
ejb sever or application server. But Sun says that it will define an
interface between the container and the server as well during the course of
time like interface between the container and the bean coded by the
programmer. EJB is a interface between the container and the bean so that
the bean can be deployed accross multiple containers without changing the
code. This makes it container independent or atleast theoratically allows
application server to be changed.
If you still have doubts please feel free to contact me.
Ripan
-----Original Message-----
From: Gopi Krishna [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 2:41 PM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Question
what exactly is EJBObject and how is it differnet from bean instance.
are container and ejb server different?
-----Original Message-----
From: Srinivas K. R. [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 1:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Newbie Question
go to this site-->
http://www.execpc.com/~gopalan/java/ejb.html
cheers
srinivas
----- 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".
===========================================================================
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".