• 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

RmiRegistry

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi

i have some doubts in RMI like
can i put rmiregistry and server programs in diff machines..

can we write a program for rmiregistry instead of normal rmiregistry

pls help me out

thank u..
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

can i put rmiregistry and server programs in diff machines



Yes, you can run the registry on one machine and run server(s) on other(s). Just make sure that you spcify the codebase for the servers in a way that the registry can get to (i.e. - use a HTTP URL rather than a file.)

can we write a program for rmiregistry instead of normal rmiregistry



I'm sure that you could. It's basically just a Remote interface to something like a hashmap that lets you store and retrieve serialized references. To work with existing RMI programs you'd have to match the interface they provide - so I'm not sure how you could improve upon it too much. As a different approach, you could create a second level of interfaces/protocols/etc. on top of RMI - take a look at Jini for an example of this.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic