wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "A stateless session question" Watch "A stateless session question" New topic

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é

Joined: Nov 24, 2005
Posts: 14687

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
Similar Threads
Subclassing rules for Session beans
EJBCore_Spec errata?
Answer to this question and why ?
Wrong answer/explanation in com.enthuware.ets.scbcd.v5.2.161
question about dependent injection