aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt with EJBObject (Maikalai Zaikin's notes) 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 "Doubt with EJBObject (Maikalai Zaikin Watch "Doubt with EJBObject (Maikalai Zaikin New topic
Author

Doubt with EJBObject (Maikalai Zaikin's notes)

Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
Source: Maikalai Zaikin's Study Notes

I found the following statement on page number 60:

The getEJBObject method returns the session bean's remote interface. Only session beans with a remote EJBObject interface can call this method.



And I found the following statement on page number 73

The following are the requirements for the session bean's business interface: The interface MUST NOT extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface.


I confused with this. I think that the first statement says to extend the EJBObject interface, by the remote business interface, and the second statement says MUST NOT extend it!

Please can anyone explain this?
[ November 16, 2008: Message edited by: Kenneth Lomvey ]
prashant k. gupta
Ranch Hand

Joined: May 15, 2008
Posts: 62
In First case, its related to EJB 2.0/EJB 2.1 where we used to have home interface and remote Interface but for later case its related to EJB 3 where we will have only Business interface for EJB. (No Home/Remote Interface).
Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
Thanks Prashant
 
wood burning stoves
 
subject: Doubt with EJBObject (Maikalai Zaikin's notes)