Multiple choice technology web technology

When do you use a session bean?

  1. When you want to be certain your application data persists between program invocations, even in the event of a crash.

  2. If you need to initiate a database transaction.

  3. To process transient data that can be re-created in the event of a crash.

  4. To keep people who do not know how to program from accidentally changing important logic code.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Session beans represent work performed for a single client and hold transient, conversational state. Unlike entity beans or persistent storage, session bean state does not survive system crashes or program terminations. Thus, they process transient data that can be re-created.