written 7.7 years ago by | • modified 7.7 years ago |
Mumbai University > Information Technology > Sem 6 > Distributed System
Marks: 10 Marks
Year: May 2016
written 7.7 years ago by | • modified 7.7 years ago |
Mumbai University > Information Technology > Sem 6 > Distributed System
Marks: 10 Marks
Year: May 2016
written 7.7 years ago by |
EJB specification gives a clear description of each of these roles and their associated responsibilities.
a) Enterprise Bean Provider
b) Deployer
c) Application Assembler
d) EJB Server Provider
e) EJB Container Provider
f) System Administrator
EJB are primarily of three types which are briefly described below:
1. Session Bean:
The client’s business logic is implemented by a session bean of EJB.
For example a session bean can calculate interest on deposits for a banking application.
Session beans are used as reusable components in EJB architecture that encapsulate the business logic and can be used by other clients. These clients can optimize the use of EJB container.
The name is derived as they are live as long as a client’s session using them.
2. Entity Bean:
It is a data component that persists data onto a secondary storage such as a database.
Like a simple java class, the Entity Bean has attributes and methods. Attributes are used to store data and methods are to perform operations on the fields.
Entity beans can be viewed as a record in a database. An Entity Bean lasts as long as the data it represents.
3. Message-Driven Bean:
A Message-Driven Bean is an enterprise bean that is used to manage messages asynchronously. It acts as a listener to receive messages.
The message can be sent by using any J2EE component-application client, another enterprise bean, a web component or by a JMS application.
Clients do not access the message driven beans through interfaces.
Message Driven Beans are primarily focused on JMS.
It is possible to get messages by multiple parties.