Friday, February 9, 2007

Difference between javabeans and ejb?

JavaBeans components are small-grained application bits. You can use JavaBeans to assemble larger-grained components or to build entire applications. JavaBeans, however, are development components and are not deployable components. You typically do not deploy a JavaBean because a JavaBean is not a complete application; rather, JavaBeans help you construct larger software that is deployable. And because they cannot be deployed, JavaBeans do not need a runtime environment in which to live. JavaBeans do not need a container to instantiate
them, to destroy them, and to provide other services to them because the application itself is made up of JavaBeans. By way of comparison
The Enterprise JavaBeans (EJB) standard defines a component architecture for deployable components called enterprise beans. Enterprise beans are larger, coarser-grained application components that are ready to be deployed. They can be deployed as is, or they can be assembled with other components into larger application
systems. Deployable components must be deployed in a container that provides runtime services to the components, such as services to instantiate components as needed.


SOURCE : www.referjava.com

No comments: