• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RMI will be a long procedure. So go for sending message only.
http://feelday.com/
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you can and should.
reply
    Bookmark Topic Watch Topic
  • New Topic