• Post Reply Bookmark Topic Watch Topic
  • New Topic

WHAT is the usage of this method ??????  RSS feed

 
Ramalingam Vijayakumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
What exactly is the usage of
UnicastRemoteObject.exportObject(Remote);
thanx in advance,
bye
ram..
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd typically see this statement in two places: one, in the contructor of a class that implements a Remote service; or two, in the main() method of a class that starts a Remote service. Ex:

All this does is save the ServiceImpl class the hassle of extending UnicastRemoteObject, which has a constructor that does the same thing.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!