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

EPractice Labs final exam question 35

 
Bartender
Posts: 1925
13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


You want to implement a scheduler to process reporting algorithm. The report will not be shared and it will emailed to only root administrator.

A: Create a stateless session bean and register with the EJB timer service for time-based event notification.
...
C. Create a singleton session bean and register with the EJB timer service for time-based event notification.

The model answer : C.


But the answer should be A because there is a key word "the report will not shared". If a singleton is used as the model answer says, the variables in the singleton will be shared across the application and among different clients.
 
author & internet detective
Posts: 40038
809
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agreed. Maybe there thinking there is no state so they don't need a pool? I'd use a stateless bean here too.
    Bookmark Topic Watch Topic
  • New Topic