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 Placement of getEJBObject() method. 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 "Placement of getEJBObject() method." Watch "Placement of getEJBObject() method." New topic
Author

Placement of getEJBObject() method.

Avike Jorgenssen
Greenhorn

Joined: Oct 13, 2006
Posts: 3
Hi,

What is the reasoning behind putting getEJBObject() in EntityContext/SessionContext instead of in EJBContext?

I could understand if it was put there to avoid MessageDrivenContext inheriting the method, but then why is getEJBHome located in the EJBContext? MDBs have no home either!

Cheers,
Avike.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Placement of getEJBObject() method.
 
Similar Threads
EJBContext methods
bean things in setSessionContext
Operations Allowed in the Methods of a MDB
Mock exam question (states)
roll back the trasaction