Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB Timer in Stateful session Bean?

 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why stateful session beans cannot create timer objects but they do in Stateless???

Please explain me.

Thanks,
Rahul
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rahul,

Why do you need it? The problem is potential scalability problems.

Regards,
Reza
 
Rahul Ba
Ranch Hand
Posts: 206
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
Eclipse IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic