• 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

invoking remote objects

 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am developing an application which uses a some clients and a server, the clients are required to communicate to server for retrieving some data, One solution I came to know is using RMI is there any other way to do this ???
for example implementing implementing it through sockets,
Note : both client and server know each other IPs beforehand..
 
Author
Posts: 836
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Both are possible. Sockets sit in the TCP network communication layer. RMI is part of the software application, specifically an invocation layer for calling methods of a remote object. RMI has the benefits of making it easy in your code to invoke remote methods on Java objects (it only works between applications in Java, so consider the RMI IIOP if you need inter-platform cooperation). RMI does have some overheads because of the generic protocol it uses, so you can make some savings by writing your own more targeted protocol over sockets. But then you need to assess if the overheads are really worth the effort, and if you might need to expand the code later and what impact that would have.
 
vaibhav mishra
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for the reply ,
it is a fairly basic application so I would go for RMI
 
reply
    Bookmark Topic Watch Topic
  • New Topic