aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes A stateless session question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "A stateless session question" Watch "A stateless session question" New topic
Author

A stateless session question

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
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?


who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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.


[My Blog]
All roads lead to JavaRanch
Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131
Thanks Christophe very much!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: A stateless session question