• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

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
 
Evacuate the building! Here, take this tiny ad with you:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic