• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is still required rmic?

 
Pedro Su�rez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm reading my assignment, and in section "Restrictions on RMI" I read this:

You must provide all classes pre-installed so that no dynamic class downloading occurs.

I'm wondering if it means that I must use rmic to generate the stubs or if it means that I don't have to use an http server for downloading classes from the server.

thanks.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pedro,

I asked Sun about this when I was writing my book, and they were very explicit that rmic must be used.

If you do not use rmic, then the stubs will be compiled on the server when first requested, then dynamically downloaded to the clients (using RMI's protocols if you haven't specified anything different).

Regards, Andrew
 
Romeo Son
Ranch Hand
Posts: 92
Android Eclipse IDE Suse
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point Andrew,

I have never really understood how the RMI stub stuff works on java 5 platform.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic