• Post Reply Bookmark Topic Watch Topic
  • New Topic

UnicastRemoteObject

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I am using UnicastRemoteObject.exportObject() to explicitly export an object that implements the interface which contains the method that are to be exported. But getting the following error when I execute the rmic command.
ERROR:Class MyServer does not implement an interface that extends java.rmi.Remote. Only remote objects need stubs and skeletons.
When I make my class implement the interface, it says 'MyServer must be declared abstract as it does not implement all the methods in the interface.'
I actually have a class that implements this interface and I want to import this class using exportObject(). How do I do this.
 
Milind Kulkarni
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Palkhi,
Please send the source code to me at milindkulkarni@usa.net.
Also check if your remote interface extends java.rmi.Remote and make sure that you provide implementations for all the methods declared in the remote interface.
Regards,
Milind

[This message has been edited by Milind Kulkarni (edited August 03, 2000).]
 
srinivas acharyulu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instead of this you can directly extend UnicastRemoteObject which eliminates you for doing externally exportObject() as well as some implementations like toString() and equals() methods.
and it also will not allow duplication of objects.
Hope i am useful.
------------------
D.Srinivas Acharyulu
SystemsEngineer,
WIPRO Technologies,
Hyderabad,India
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!