This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Which statement about EJB 2.x and EJB 3.0 API interoperability is correct? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Which statement about EJB 2.x and EJB 3.0 API interoperability is correct? " Watch "Which statement about EJB 2.x and EJB 3.0 API interoperability is correct? " New topic
Author

Which statement about EJB 2.x and EJB 3.0 API interoperability is correct?

Fu Dong Jia
Ranch Hand

Joined: May 23, 2007
Posts: 131

Which statement about EJB 2.x and EJB 3.0 API interoperability is correct?
1,A stateless session bean written to the EJB 3.0 API can be adapted to an EJB 2.1 client interface.
2,The developer cannot mix APIs. For example, the developer cannot write an EJB 3.0 session bean while also implementing an EJB 2.1 EJBHome interface.
3,The EJB 2.1 API requires the use of a stateful session bean's home interface to obtain a reference to the bean's component interface. The developer cannot use dependency injection to obtain a reference to such a home interface in an EJB 3.0 client of such a bean.
4,An adapter class has to be used when accessing EJB 2.0 environment variables of a stateless session bean, when such a bean is deployed in an EJB 3.0 container.


Is the answer is 2?


who dare win!<br />SCJP5(94%)|SCWCD5(86%)|SCBCD(100%)|SCEA in progress
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
No 2 is for sure incorrect. I think correct answer is 3.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Which statement about EJB 2.x and EJB 3.0 API interoperability is correct?
 
Similar Threads
Specification Chapters to avoid for Exam
Doubt from the specs
Few Questions
Doubts Regarding Questions of SCBCD5.0
Answers of Sun's Free Proficiency Assessment