• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Timers and Stateful Session Beans

 
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic