Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI - Class versions and persistance  RSS feed

 
Charlie Goth
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wouldn't normally ask something like this but I've only got one machine so I can't get the answer by myself.

OK, so when RMI downloads classes not found on the client:

Where are they downloaded to?

Will the class file persist on the client for the next time?

Is there any built-in version control? i.e. will RMI download an updated version of existing classes.

Thanks in advance
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know the answer. But what is preventing you from running the server and client on your one machine?
 
Charlie Goth
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing, but if I run them both on the same machine, all the classes will already be on the client - so I can't observe the behaviour (no classes will be downloaded etc.)
 
Paul Clapham
Sheriff
Posts: 22185
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And if you assigned the server and client totally different classpaths in totally different directory trees...?
 
Charlie Goth
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good idea.

I've done a bit of tinkering, and got the client to 'download' the class file in question. However, I can't find any trace of the 'downloaded' file - I even checked for files modified today - it's not there.

Well, I guess that I'll have to think of another way of doing what I had planned...

I'm wanting to download 'installers' from the server and run them on the client, upgrading the client without the user doing anything. I had planned to run each of the installers each time the application runs (essentially the client will do nothing, except exit, until the installers run), so I need the code to persist.

Any ideas?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!