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
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply 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: 14672
    
  11

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: A stateless session question
 
Similar Threads
Subclassing rules for Session beans
Answer to this question and why ?
Wrong answer/explanation in com.enthuware.ets.scbcd.v5.2.161
question about dependent injection
EJBCore_Spec errata?