Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI question?

 
Fred Barnes
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I placed my needed stub files inside of the client.jar so, that the client.jar is not dependant on the server.jar
 
Fred Barnes
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eugene,
Thank you for your kind reply!
Regards
Fred
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic