Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI and Applets?

 
Dan Wong
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Dan Wong
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks heaps.
Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic