Difference between javaBeans and Enterprise JavaBeans?

Answer Posted / raji

1. JavaBeans may be visible or nonvisible at runtime.For
example, the visual GUI component may be a button,list
box,graphic or a chart.
An EJB is a nonvisual ,remote object.
2. JavaBeans are intended to be local to a single process
and are primarly intended to run on the client side.Although
one can develop server-side JavaBeans,it is far easier to
develop them using the EJB specification instead.
EJB's are remotely executable components or business
objects that can be deployed only on the server.
3. JavaBeans is a component technology to create generic
Java components that can be composed together into applets
and applications.
Even though EJB is a component technology,it neither
builds upon nor extends the original JavaBean specification.
4.JavaBeans have an external interface called the properties
interface, which allows a builder tool to interpret the
functionality of the bean.
EJBs have a dployement descriptor that describes its
functionality to an external builder tool or IDE
5.JavaBeans may have BeanInfo classes,property editors or
customizers
EJB's have no concept of BeanInfo classes,property
editors or customizers and provide no additional information
other than that described inthe deployment descriptor.

6. JavaBeans are not typed.
EJBs are of two types - session beans and entity beans.
7. No explicit support exists for transactions in javaBeans.

EJB's may be transactional and the EJB servers provide
transactional support.

8. Component bridges are available for JavaBeans.For ex: a
javabean can also be deployed as an Activex control.
An EJB cannot be deployed as an ActiveX control because
ActiveX controls are intended to run at the desktop and
EJB's are server side components.However CORBA-IIOP
compatibility via the EJB-to-CORBA mapping is defined by the
OMG.

Is This Answer Correct ?    82 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by abstract schema?

544


can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.

1764


How to import ejb project in eclipse?

549


What does ejb stand for?

589


What are the components of ejb?

535






Explain the concept of ejb ql?

579


What is ejb and its uses?

492


Is it possible to write two ejb’s that share the same remote and home interfaces, and have different bean classes? If so, what are the advantages/disadvantages?

493


What is stateless session?

538


Is it legal to have static initializer blocks in ejb?

536


Is it possible to share an httpsession between a jsp and ejb?

499


Write the basic requirement of a cmp entity based class in 2.0 from ejb 1.1?

568


What were entity beans?

562


How can I access ejb from asp?

566


What is the difference between ejb and spring?

508