Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI newbie- can i store some of the libraries to be used via RMI directly on the local machine

 
Arvind Ik Chari
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I wish to access some code via RMI in Java.

Now, some of the libraries which are used by the code (that will be used by client after being retrieved from server using RMI) are quite large in size and bandwidth of client machines is limited.

Hence, what I wish to do is--copy the libraries (some of them--> the ones that are large in size) directly in the client machine beforehand. And later, when the client wants to run some code via RMI--> it simply downloads the relevant code portions--using the libraries that are already present in client beforehand.

Is such a setup/config possible in RMI? How do I implement the same? If this is not possible, is there some other way to reduce the code that is actually transmitted using RMI, to the barest minimum possible.

Yours sincerely,
Arvind.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a very simple solution: don't use RMI

Simply send messages. Encode them as you wish, JSON is a popular choice.
 
Jenny Richards
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RMI will be a long procedure. So go for sending message only.
http://feelday.com/
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you can and should.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic