Which of the following is not a life-cycle method for a Stateful Session Bean?

Options
- Post Construction
- Pre Destruction
- Post Activation
- Pre Construction


CORRECT ANSWER : Pre Construction

Discussion Board
Stateful session bean

Stateful Session beans are the beans that consists of the state which is retained for the duration of the client/bean session. Till the client is keeping the bean it will remain in that state the moment client removes the bean the session ends and the state disappears. There is no need to retain the state once the transition between the client and the bean ends.

The state of an objects includes the values of its instance variables where it represents the state of a unique client/bean session.

Pre-construction is not required/used in the life-cycle method for a stateful session bean as when the variables come in stateful condition then they come pre constructed.

Rohit Sharma 08-21-2014 06:28 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement