| Author |
Session Bean Stateful life cycle
|
Eusebio Floriano
Ranch Hand
Joined: Mar 07, 2004
Posts: 235
|
|
Hi friends I have a doubt. If a session bean stateful is passivate and the client calls remove(), what�s the container�s callback ? Will it call ejbActivate then ejbRemove or it will call ejbRemove directly ? Regards
|
SCJP 1.4 / 5.0 - SCBCD 1.3 - SCWCD 1.4 - IBM 484
|
 |
Christian D. Th. Sellberg
Greenhorn
Joined: Apr 02, 2004
Posts: 10
|
|
I believe that when the client calls remove then it triggers the container to call ejbActivate and then ejbRemove. If you look at the life cycle state diagram of a statefull session bean on page 77 in the spec then there is no transition from �passive� to �does not exist� which is triggered by remove(). I also make sense if you imagine passivation as if the bean were serialized, then there would be no active bean instance to call ejbRemove on. Christian
|
 |
Sandesh Tathare
Ranch Hand
Joined: Jun 22, 2003
Posts: 82
|
|
Christian, You are right. when client calls remove, it triggers container to call ejbActivate and ejbRemove methods. If the bean were serialized, then there would be no active bean instance to call ejbRemove on.
|
Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.
|
 |
Eusebio Floriano
Ranch Hand
Joined: Mar 07, 2004
Posts: 235
|
|
Hummm ... I see . It realy makes sense. Thx for the help regards
|
 |
 |
|
|
subject: Session Bean Stateful life cycle
|
|
|