• 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

Running the RMI registry

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm writing my server code, but now I'm wondering if I need to start the RMI Registry through code. Because if I do, perhaps you can help me to do it.
Or the examiners start the RMI Registry.

I've been testing the server, writing the rmiregistry command in a command window.

Thanks in advance.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To start the registry and to bind an object (stub) to this registry, I use this code:
The accessor/examiner will not start the registry. He/She only uses the command "java -jar runme.jar " (with the appropriate parameter) to start the application in different modes, no other actions should be required (or you may/will fail).
 
Eugenio Flores
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Roel: Thanks a lot again.

So with java -jar runme.jar will the examiners start both, client and server?
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Eugenio Flores wrote:So with java -jar runme.jar will the examiners start both, client and server?


Correct Depending on the parameter the 3 different modes (network server, client application in networked mode and client application in standalone mode) will be started with that command, and if the accessor has to do something else (e.g. starting the rmi registry, creating a properties file,...) you'll fail automatically because you'll violate a must requirement
reply
    Bookmark Topic Watch Topic
  • New Topic