Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timers and Stateful Session Beans

 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

in the EJB 3.0 core spec, 18.2, I see
"Timers cannot be created for stateful session beans or EJB 3.0 entities".

But, in 4.4.1, Table 1, I see "Timer methods" calls allowed in certain stateful session bean methods.

What could this mean?
 
Lawrence Johnbosco
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I guess it is because Timers can be created only via TimerService. The Stateful beans are allowed to access a Timer ( for instance obtaining it as return parameter from a stateless bean's business method). If you compare the table 4.4.1 (operation allowed in stateful beans) with the 4.5.2 (operations allowed in stateless beans) you will realize, the stateless bean methods can access TimerService in addition to Timer.

Hope this helps.

Regards..Lawrence J



Regards..Lawrence J
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic