Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt with EJBObject (Maikalai Zaikin's notes)

 
Kenneth Lomvey
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Prashant
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic