Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.rmi.Remote and Remote business interface doubt

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the purpose of a Remote business interface extending java.rmi.Remote? Why and when shoud one extend this interface
from a Remote business interface.

I read the documentation of java.rmi.Remote, It says that any interface that wants its methods to be invoked remotely via RMI, must implement this interface. Since the remote interface is already marked with @Remote annotation, making the remote interface extend java.rmi.Remote interface makes it redundant as per my understanding. Is this correct?
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak,

You are correct. The facility really only exists for EJB 2.x backwards compatibility.

Best regards,
Reza
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic