Which statement describes how to manage the data correctly?

A developer creates a stateless session bean. This session bean needs data from a remote
system. Reading this data takes a long time. Assume that the data will NOT change during the
lifetime of the bean and that the information to connect to the remote system is defined in JNDI.
Which statement describes how to manage the data correctly?

A developer creates a stateless session bean. This session bean needs data from a remote
system. Reading this data takes a long time. Assume that the data will NOT change during the
lifetime of the bean and that the information to connect to the remote system is defined in JNDI.
Which statement describes how to manage the data correctly?

A.
Readthe datain the bean’s constructor.

B.
The datacan only bereadinthebean’s business methods.

C.
Read thedatain a method which is annotated with@PrePassivate.

D.
Read the data in a method which is annotated with @Post Activate.

E.
Readthedata ina methodwhich is annotated with (5)PostConstruct.



Leave a Reply 0

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