my dog learned polymorphism*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes RMI question? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "RMI question?" Watch "RMI question?" New topic
Author

RMI question?

Fred Barnes
Ranch Hand

Joined: Jun 11, 2002
Posts: 62
Hi Guys,
Just a quick question. Is it fine to have the server.jar in the classpath of the client.jar or must the stub classes be download from the server?
Regards
Fred
Matt Ghiold
Ranch Hand

Joined: Feb 24, 2002
Posts: 213
I placed my needed stub files inside of the client.jar so, that the client.jar is not dependant on the server.jar


-Matt<br /> SCJP2<br /> SCJD
Fred Barnes
Ranch Hand

Joined: Jun 11, 2002
Posts: 62
Hi Matt,
Thank you for your reply!
I was thinking if you include the needed stub class in you client.jar and there needs to be changes on the server side the client.jar need to be updated. However if the stub classes are downloaded this would be avoided.
What are you comments on this view...
Regards
Fred
John Smith
Ranch Hand

Joined: Oct 08, 2001
Posts: 2937

I was thinking if you include the needed stub class in you client.jar and there needs to be changes on the server side the client.jar need to be updated. However if the stub classes are downloaded this would be avoided.

To dynamically download the stubs, you need an HTTP server running from where these stubs can be downloaded upon request. That means that you need to write your own HTTP server and include it with your submission, or assume that the assessor will have the HTTP server running and point your codebase to that server. All of these are very risky propositions, and I strongly advise you not to rely on dynamic downloading. Simply package your stubs with the client, and you pass!
Here are some other things NOT to do.
Eugene.
[ January 22, 2003: Message edited by: Eugene Kononov ]
Fred Barnes
Ranch Hand

Joined: Jun 11, 2002
Posts: 62
Hi Eugene,
Thank you for your kind reply!
Regards
Fred
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI question?