Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.rmi.Remote and Remote business interface doubt  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!