wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes RMI and Applets? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI and Applets?" Watch "RMI and Applets?" New topic
Author

RMI and Applets?

Dan Wong
Greenhorn

Joined: Sep 23, 2003
Posts: 6
Hi,
I'm a noob so appreciate some enlightment.
If I want to use Applets so people can easily access my services via the Internet, than what is the point of Applets supporting RMI if I need them to download stub classes and put them in some class path somewhere on their computer? Is there a way around this or should I go back to sockets?
Regards.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Applets themselves are just code delivered from a web server to a browser, where they're interpreted and executed. If you want to execute code that runs on the server side and returns a result, RMI is the only way to do it.
But I'm not really sure what your objection is. Is the overhead of downloading a stub? The inconvenience of using one?


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Dan Wong
Greenhorn

Joined: Sep 23, 2003
Posts: 6
Are stubs automatically downloaded to clients who access the application?
Didn't catch this part until I reread everything slowly.
Regards.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

It *can* be automatic (or dynamic). It's also possible to include the stub with the applet in a jar file and have the browser client download all that in one go.
Dan Wong
Greenhorn

Joined: Sep 23, 2003
Posts: 6
Thanks heaps.
Regards.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI and Applets?