This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJBContext.getEJBObject / getEJBHome obsolete in EJB3 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJBContext.getEJBObject / getEJBHome obsolete in EJB3 ?" Watch "EJBContext.getEJBObject / getEJBHome obsolete in EJB3 ?" New topic
Author

EJBContext.getEJBObject / getEJBHome obsolete in EJB3 ?

Benoît de Chateauvieux
Ranch Hand

Joined: Aug 10, 2007
Posts: 183
Hi all,

In OReilly EJB3 11.2, I read:
The getEJBObject( ) and getEJBLocalObject( ) methods are obsolete and will throw an exception if invoked on. They are objects that are specific to the EJB 2.1 style of defining EJBs.

But I can't find this in the spec and when I test it with my OC4J
- I don't have any error, with a Bean with business remote interface
- but I have an error, with a Bean with business local interface

Any idea ?
Thanks,

Beno�t


SCJP5 | SCBCD5 | SCEA5 Part 1
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJBContext.getEJBObject / getEJBHome obsolete in EJB3 ?