Tuesday, 5 February 2013

EJB AND JAVA BEAN | J2EE Tutorial pdf

EJB AND JAVA BEAN

Both EJB and javabean are used to encapsulate business logic but both are entirely different.
Those differences are-
1. The javabean architecture is designed to provide a format for general purpose component where Enterprise javabean architecture provides a format for highly specialized business logic components deployed in j2ee environment.
2. To execute javabean JVM is sufficient but for EJB ejb container is required.
3. Container does not provide specific service to javabean but for EJB container provides many services like persistence, transaction, security, lifecycle services etc.
4. We can use javabean in any tier but EJB we can use only in business tier.

No comments: