aspose file tools*
The moose likes Distributed Java and the fly likes RMI newbie- can i store some of the libraries to be used via RMI directly on the local machine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI newbie- can i store some of the libraries to be used via RMI directly on the local machine" Watch "RMI newbie- can i store some of the libraries to be used via RMI directly on the local machine" New topic
Author

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

Arvind Ik Chari
Greenhorn

Joined: Dec 02, 2012
Posts: 13
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

Joined: Aug 11, 2007
Posts: 4659
    
    5

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

Joined: Feb 16, 2013
Posts: 1
RMI will be a long procedure. So go for sending message only.
http://feelday.com/
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

Yes, you can and should.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI newbie- can i store some of the libraries to be used via RMI directly on the local machine