wood burning stoves 2.0*
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
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
 
 
subject: EJBContext.getEJBObject / getEJBHome obsolete in EJB3 ?
 
Similar Threads
EJBObject question.
Question on SLSB Contract - SCBCD
Understandly entities ejb life-cicle deeply... need some help.
Remote methods
Can the same business interface be used to serve both local and remote clients ?