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

Mumbai University > Information Technology > Sem 6 > Distributed System

Marks: 5Marks

1 Answer
0
0views

Stateful session beams:

These beams possess 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.

Stateful session beams

enter image description here

Entity beams

enter image description here

Please log in to add an answer.