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?
Reveal answer
Fill a bubble to check yourself