• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A stateless session question

 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given a stateless session bean with container-managed transaction demarcation, from which two methods can
a developer access another enterprise bean? (Choose two.)
A. bean constructor
B. Timeout callback method
C. PreDestroy lifecycle callback method
D. PostConstruct lifecycle callback method
E. business method from the business interface
Answer: BE

why c and d is not correct?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check the spec, 4.5.2 Operations Allowed in the Methods of a Stateless Session Bean Class. By the way, you have to know these "Operations Allowed" tables for the exam.
 
Fu Dong Jia
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Christophe very much!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic