Which three actions should the developer take to make the bean behave correctly in passivation and timeout situations?

A developer creates a stateful session bean that is used by many concurrent clients. The clients
are written by other development teams and it is assumed that these clients might not remove the
bean when ending their session. The number of concurrent sessions will be greater than the
defined bean cache size. The developer must consider that the state of the session bean can be
influenced by either passivation or timeout. Which three actions should the developer take to make
the bean behave correctly in passivation and timeout situations? (Choose three.)

A developer creates a stateful session bean that is used by many concurrent clients. The clients
are written by other development teams and it is assumed that these clients might not remove the
bean when ending their session. The number of concurrent sessions will be greater than the
defined bean cache size. The developer must consider that the state of the session bean can be
influenced by either passivation or timeout. Which three actions should the developer take to make
the bean behave correctly in passivation and timeout situations? (Choose three.)

A.
Release references to resources ina@Removeannotated method.

B.
Re-establish references to resources in an @lnit annotated method.

C.
Release references to resources ina@PreDestroy annotated method.

D.
Release references to resources in a @PrePassivate annotated method.

E.
Re-establish referencestoresources ina (©PostActivate annotatedmethod.



Leave a Reply 0

Your email address will not be published. Required fields are marked *