File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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 ?
 
Similar Threads
Remote methods
Understandly entities ejb life-cicle deeply... need some help.
Can the same business interface be used to serve both local and remote clients ?
EJBObject question.
Question on SLSB Contract - SCBCD