0
2.5kviews
Can persistence be maintained at the bean level? If so, how it is done?

This question appears in Mumbai University > Distributed System Subject

Marks: 5 M

Year: May 2015

1 Answer
2
2views

1. Stateful session beams:

  • These beams posses internal states of instance variables which represent the state of unique client beam session.

  • As their state can be saved and restored between sessions, they are also called persistent session beams.

Entity beams:

  • They are persistent java objects whose state can be saved into the database and restored for later usage

  • It represents a record in database.

  • Even when program units, the entity beam will continue to exit.

  • So when program is restarted it can reuse states of beam object.

2. Stateful session beams

enter image description here

3. Entity beams

enter image description here

Please log in to add an answer.