RE: What is the difference between JavaBean and EJB
Java Beans architecture is meant to provide a format of general-purpose components. But Enterprise Bean Architecture is meant to provide a format of highly specialized business logic components.
RE: What is the difference between JavaBean and EJB
EJB is designed to work in distributed environment using rmi/iiop protocol where as JavaBean is standalone and works only in the same JVM.
Implicit services are provided to EJb by the Container, in which it si deployed according to EJB contract but in JavaBean we need to code all these services
RE: What is the difference between JavaBean and EJB
Java Beans and EJBs are used for different purposes altogether, though both specifications are provided by Sun micro Systems. Java Beans are mainly meant for building extendable components and typically contain getters and setters for all its data members, along with other required functionality. EJBs are server side programs that typically implement middle layer business functionality, providing 3 - layer architecture for applications. EJBs can be Entity,Session or Message depending on the required functionality. Most of the critical services are provided by EJB containers and thus allowing the programmmer to concentrate on the business logic on hand.
RE: What is the difference between JavaBean and EJB
To put it in simple terms...
Javabean is a reusable component. Common type of GUI components like Swing button can be quoted as an example.
EJB is also reusable component. But the difference is that the bean part of javabean is used mostly at developement time whereas bean part of EJB starts off at runtime. Regular Javabean runs in a JVM while the EJB bean runs under the control of EJB container(Server).
RE: What is the difference between JavaBean and EJB
Just some notes from a book I read:
JavaBean define a model for creating general-purpose components that are typically used on the client side. Those components may or may not contain a user interface.
EJBs define a server-side component fro creating highly specialized business logic components. EJB components don't have GUI.
RE: What is the difference between JavaBean and EJB
JavaBeans- are reuseable,non-deployable components. They can't exist independently.EJB - are deployable, reuesable, server side components. They can exist independently or in integration with other components.
RE: What is the difference between JavaBean and EJB
JavaBean :
1. Low-level approach for developing re-usable components for building different Java applications (Applets, stand-alone applications etc.). 2. Java Beans runs in a JVM, just like other normal java class
EJB :
1. High-level approach to build Distributed java applications & its an Re-usable server-side component