• 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

why remote interface not implemented?

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In EJB, the bean class defines the method in the remote interface but we are not implementing the remote interface explicitly? why?

Thanks in advance.
 
Ranch Hand
Posts: 354
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
WE are not implementing it, but the container where you deploy you EJB implements it. When you invoke methods on this interface, the implementation delegates the call to the corresponding EJB method. The container has a purpose doing so as it makes it aware of what is happening to the EJB.
 
srhl ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jack Ryan:
WE are not implementing it, but the container where you deploy you EJB implements it. When you invoke methods on this interface, the implementation delegates the call to the corresponding EJB method. The container has a purpose doing so as it makes it aware of what is happening to the EJB.



i have one more doubt.
java tells that if it is a interface then the class defining the methods in the interface must 'implement' interface explicitly but here the bean class is not explicitly mentioning. why? and who does this job?
reply
    Bookmark Topic Watch Topic
  • New Topic