Ken Klose wrote:

> Well I got off my duff and RTFM and found I wasn't imagining having seen it
> somewhere. This is from Java Enterprise in a Nutshell 1st ed.
> (1-56592-483-5) page 174:
>
> "So, you mak ask, how are EJB components different from regular distributed
> objects built using RMI or local (nondistributed) components defined using
> the JavaBeans component model?  Well, they aren't, really.  An EJB component
> is an RMI object, in the sense that it's exported as a remote object using
> RMI.  And an EJB component is also a JavaBeans component, since it has
> properties that can be introspected, and it uses the JavaBeans conventions
> for defining accessor methods for its properties."
>

I think the book is not right.
First of all, most of the beans don't have properties. The most typical example
is a stateless session bean.
Second, the JavaBeans support several features. Among them are the support for
events, which are not part at all of the EJB spec, and the support for
persistence (they must be Serializable), which is not the case for EJBs, either.

Finally, at least in the EJB 1.1 spec, there is no convention at all for
accessing the properties. BTW, container-managed fields of an entity bean are
not accessed by the container via accessors, but directly (they must be public).

To me, the "Enterprise Java Bean" name was more a marketing choice than a
technical one.

Regards.

JB.

>
> Of course that isn't necessarily gospel.  I haven't had the time (or
> caffeine) to read the EJB spec yet, so I'm hoping that someone who has, (or
> has similar experience) will pipe up with a definitive link or reference to
> something.  Frankly, I think if would be a big deal to be able to think of
> an EJB along the lines of a regular JavaBean.
>
> Thanks,
> Ken
>
> ----- Original Message -----
> From: "Lee Turner" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 04, 2000 11:54 AM
> Subject: Re: Difference/Similarity between EJB and Java Beans
>
> > This is not correct as far as I know.  Apart from the name they share very
> > little.  As already said, JavaBeans are client side visual or none visual
> > in-process components, where as Enterprise JavaBeans are server side out
> of
> > process components
> >
> > As far as I know the JavaBean spec and the EJB spec are two very different
> > things
> >
> > Lee
> >
> > > -----Original Message-----
> > > From: Ken Klose [SMTP:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 04, 2000 4:12 PM
> > > To:   [EMAIL PROTECTED]
> > > Subject:      Re: Difference/Similirity between EJB and Java Beans
> > >
> > > My understanding (I believe from reading O'Reilly's Java Enterprise in a
> > > Nutshell book) is that EJBs are in fact Javabeans and conform to the
> > > Javabeans spec.  Does anyone know definitively either way?
> > >
> > > Thanks,
> > > Ken
> > >
> > > ----- Original Message -----
> > > From: "Saurabh Khare" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, July 04, 2000 6:04 AM
> > > Subject: Re: Difference/Similirity between EJB and Java Beans
> > >
> > >
> > > > Your best bet is to lay ur hands on a book like *Enterprise JavaBeans*
> > > by
> > > > Richard Monsol-Haefel.. that goes thru EJBs from a beginner's
> > > perspective
> > > > and is well equipped with examples at various stages!
> > > >
> > > > In breif, apart from the name similarity, there is no other similarity
> > > > between Java Beans and EJBs. EJBs are server-side components and Java
> > > Beans
> > > > typically a client side phenomenon.
> > > >
> > > > Have fun Sanjay!
> > > >
> > > >
> > > > Saurabh Khare
> > > > IBM UK Laboratories
> > > > Hursley Park
> > > > Winchester
> > > > Phone(direct): +44 (0) 1962 815405
> > > > email: [EMAIL PROTECTED]
> > > > Ext 245405, Room A4129.
> > > >
> > > >
> > > > Sanjay Kumar <[EMAIL PROTECTED]> on 07/04/2000 10:37:36 AM
> > > >
> > > > Please respond to A mailing list for Enterprise JavaBeans development
> > > >       <[EMAIL PROTECTED]>
> > > >
> > > > To:   [EMAIL PROTECTED]
> > > > cc:    (bcc: Saurabh Khare/UK/IBM)
> > > > Subject:  Difference/Similirity between EJB and Java Beans
> > > >
> > > >
> > > >
> > > >
> > > > Hello Friends,
> > > > I am very new to this subject. Please explain me th
> > > Difference/Similirity
> > > > between EJB and Java Beans
> > > >
> > > > Cheers,
> > > > Sanjay Kumar,
> > > > Software Consultant,
> > > > Addcon India Pvt Ltd.
> > > > New Delhi.
> > > >
> > > > Emails : [EMAIL PROTECTED]
> > > >              [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".
> > > >
> > > >
> > >
> ==========================================================================
> > > =
> > > > 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".

--
Jean-Baptiste Nizet
[EMAIL PROTECTED]

R&D Engineer, S1 Belgium
Kleine Kloosterstraat, 23
B-1932 Sint-Stevens Woluwe
+32 2 200 45 42

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