• Post Reply Bookmark Topic Watch Topic
  • New Topic

why remote interface not implemented?

 
srhl ram
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • 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.
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!