aspose file tools
The moose likes Distributed Java and the fly likes Accessing remote object Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Reply Bookmark "Accessing remote object" Watch "Accessing remote object" New topic
Author

Accessing remote object

prasad kulkarni
Ranch Hand

Joined: Mar 19, 2006
Posts: 66
When I tried to access a RemoteObject from a different machine, I have to copy the stub class & remote interface to the client machine.
Is there any alternative, so that there will not a need to copy these files?


scjp, scwcd
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

If you are using Java 1.5+ - the stubs should be generated automatically.

You can set the codebase and have the stubs be downloaded dynamically from the server.

However, both of these just address the stub - you have to have the remote interface - otherwise, how does your client know what methods to call on the server?
[ July 12, 2006: Message edited by: Nathan Pruett ]

-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Accessing remote object
 
Similar Threads
a question about rmi
ftp on java
Latest Class files not picked up by Tomcat
copyinga remote file
Copy file from path A to path B in *remote* dir