File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB Timer in Stateful session Bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB Timer in Stateful session Bean?" Watch "EJB Timer in Stateful session Bean?" New topic
Author

EJB Timer in Stateful session Bean?

Rahul Ba
Ranch Hand

Joined: Oct 01, 2008
Posts: 205
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: 580
    
    5
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: 205
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Timer in Stateful session Bean?