Difference between EJB and Java Bean?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   suresh_babu
Posted On:   Monday, November 7, 2005 03:41 AM

difference between EJB's and Java beens

Re: Difference between EJB and Java Bean?

Posted By:   Anonymous  
Posted On:   Monday, January 23, 2006 08:58 AM

difference between EJB's and Java beans

Re: Difference between EJB and Java Bean?

Posted By:   Anonymous  
Posted On:   Monday, December 12, 2005 03:50 AM



A Java Bean is a software component written in the
Java programming language that conforms to the
JavaBeans component specification.
The JavaBeans APIs became part of the "core" Java APIs
as of the 1.1 release of the JDK. The JavaBeans
specification defines a Java-based software component
model that adds a number of features to the
Java programming language. Some of these features
include:

introspection
customization
events
properties
persistence


Enterprise JavaBeans (EJBs) are Java-based software components
that are built to comply with Java's EJB specification
and run inside of an EJB container supplied by
a J2EE provider. An EJB container provides distributed
application functionality such as transaction
support, persistence and lifecycle management for the EJBs.

Re: Difference between EJB and Java Bean?

Posted By:   Anonymous  
Posted On:   Tuesday, November 22, 2005 12:14 PM

EJB's are full-fledged Enterprise JavaBeans, loaded and managed by the J2EE container.


'Plain' JavaBeans on the other hand adhere to a convention of getters/setters and publicly available default constructor.
Therefore any POJO (Plain-old Java Object) can be a Java Bean without having to implement any particular interface but sticking to the setXyz(value) / getXyz() convention for its properties.


Hope this explanation is clear enough?

About | Sitemap | Contact