Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

RMI question?

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Eugene,
Thank you for your kind reply!
Regards
Fred
 
A feeble attempt to tell you about our stuff that makes us money
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic