Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Timers and Stateful Session Beans

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?
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
New rule: no elephants at the chess tournament. Tiny ads are still okay.
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic