| Author |
EJB Timer in Stateful session Bean?
|
Rahul Ba
Ranch Hand
Joined: Oct 01, 2008
Posts: 203
|
|
Why stateful session beans cannot create timer objects but they do in Stateless??? Please explain me. Thanks, Rahul
|
 |
Reza Rahman
author
Ranch Hand
Joined: Feb 01, 2005
Posts: 559
|
|
Rahul, Why do you need it? The problem is potential scalability problems. Regards, Reza
|
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
|
 |
Rahul Ba
Ranch Hand
Joined: Oct 01, 2008
Posts: 203
|
|
|
No just for curiosity... I did not get from scalabilty term..means bit confused...How Timer will affect to scalabilty in Stateful session bean?
|
 |
Dhruva Mistry
Ranch Hand
Joined: Nov 21, 2008
Posts: 67
|
|
well, stateless beans will surely change their states if after finishing with 1st operation..so for keeping record of that we need to create a timer object in case we need to retrieve or back-check the status... vice versa, state full session beans will be automatically saving their states for particular session... and, after that session will complete it will loose state of beans as it will not required now...as session has got over..!
Originally posted by Rahul Ba: Why stateful session beans cannot create timer objects but they do in Stateless??? Please explain me. Thanks, Rahul
|
Dhruva
|
 |
 |
|
|
subject: EJB Timer in Stateful session Bean?
|
|
|