📚 Practice Mode
Enterprise JavaBeans Architecture
Learn at your own pace with hints and detailed explanations
1 / 20
Multiple Choice
You are using an EJB3.0 Stateful Session Bean for storing shopping cart information. You would like to invoke a particular method to store state data whenever bean passivates. What is the best way to achieve it?
- You must write ejbPassivate() method. Shift the logic to this method.
- Mention the method name in the deployment descriptor
- Use annotations
- There is no such facility in EJB3.0