| Author |
Confirmation About Transaction
|
Gowher Naik
Ranch Hand
Joined: Feb 07, 2005
Posts: 643
|
|
Session bean instance will throw exception if removed within a Transaction. Session bean instance cannot passivated within a Transaction. The entity bean instance can be passivated within a Transaction
|
 |
Awishek sinha
Ranch Hand
Joined: Jun 24, 2007
Posts: 62
|
|
Originally posted by gowher amin naik: Session bean instance will throw exception if removed within a Transaction. Session bean instance cannot passivated within a Transaction. The entity bean instance can be passivated within a Transaction
Yes ,session bean innstance will throw exception when removed within transaction aslo it cannot be passivated while in transaction. But entity bean instance cannot be passivated while in transaction.
|
Awishek Kr Sinha<br />SCJP 1.4<br />SCBCD 1.3
|
 |
Gowher Naik
Ranch Hand
Joined: Feb 07, 2005
Posts: 643
|
|
Mikalai Zaikin's notes chapter no-: 7 The container CAN choose to passivate an entity bean instance WITHIN a transaction.
|
 |
Amol Nayak
Ranch Hand
Joined: Oct 26, 2006
Posts: 218
|
|
According to specs section 12.1.3 The container can choose to passivate an entity bean instance within a transaction. To passivate an instance, the container first invokes the ejbStore method to allow the instance to synchronize the database state with the instance�s state, and then the container invokes the ejb- Passivate method to return the instance to the pooled state.
So entity bean can be passivated in transaction.
|
 |
Benoît de Chateauvieux
Ranch Hand
Joined: Aug 10, 2007
Posts: 183
|
|
And in ejb-3_0-fr-spec-ejbcore 8.5.1: The container can choose to passivate an entity bean instance within a transaction. To passivate an instance, the container first invokes the ejbStore method to allow the instance to prepare itself for the synchronization of the database state with the instance�s state, and then the container invokes the ejbPassivate method to return the instance to the pooled state.
|
SCJP5 | SCBCD5 | SCEA5 Part 1
|
 |
 |
|
|
subject: Confirmation About Transaction
|
|
|