• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI Object Exportation  RSS feed

 
vikasids sharma
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"The remote object instance needs to be "exported".
When you extend java.rmi.server.UnicastRemoteObject or java.rmi.activation.Activatable, your class will be exported automatically upon creation"
I could not understand the meaning here.please let me know.
What we mean here exportation of object and class is exported automatically upon creation?
Thanks in advance
 
Chris De Vries
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what they mean by "When you extend java.rmi.server.UnicastRemoteObject or java.rmi.activation.Activatable, your class will be exported automatically upon creation" is that when you create an object which extends UnicastRemoteObject or Activatable, that object is bound to a port and becomes remotely accessible automatically. If you do not extend UnicastRemoteObject or Activatable then you have to make the object remotely accessible by calling a method such as UnicastRemoteObject.exportObject().
Chris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!