What is EJBJB is actually the Enterprise Java Beans. EJB is an important part of the Java EE platform. The Java EE platform is a component-based, enterprise-class application architecture that provides multiplelevel, distributed and highthe functional characteristics of the transaction.
EJB provides a framework that takes into account robustness, high scalability, and high-performance component-based enterprise application development and deployment. An EJB shouldcan be deployed with programson any application server that complies with the j2ee1.3 standard specification. We will discuss EJB3.0 in this tutorial.
An EJB is a component that runs on a stand-alone server, and the client invokes the EJB object over the network.
EJB Types
two states of EJBA stateless session Bean is an enterprise bean that is typically used to perform standalone operations. Like its name, a stateless session bean does not have any offof the client in the Unitedstate, but it may maintain the state of its instance. The EJB container typically creates a container pool and objects of several stateless beans, and uses these objects to handle client requests. Because of the container pool, the value of the instance variable does not guarantee the same across lookup/method calls.
A stateful session Bean is an enterprise bean that holds the session state type of the client. There is a stateful session bean as each of its name-related client states remains in its instance variable. The EJB container creates a separate stateful session bean to handle each request from the client. A stateful session bean is destroyed whenever the request is scoped.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Basic summary of the Java EE (5)--EJB