• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt with EJBObject (Maikalai Zaikin's notes)

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Prashant
 
reply
    Bookmark Topic Watch Topic
  • New Topic