I think the answer is false. Beans only get passivate before the instance becomes disassociated with a specific EJB object. Therefore ejbPassivate() executes in an unspecified transaction context.
Hi, According to Spec :- The container can choose to passivate an entity bean within a transaction. Before passivating it calls 1. ejbStore() ( which will be called within a transactional context) 2. ejbPassivate() ( this action does not really need a transactional context)
Where as a Stateful session bean will never be passivated within a transaction.
Ya Vijay is correct ..... from the spec P208 "10.9.3 Passivating and activating" the interaction diagram clearly shows that cmp can be passivated after ejbStore() is called.
We find this kind of rampant individuality very disturbing. But not this tiny ad:
a bit of art, as a gift, that will fit in a stocking