Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running the RMI registry

 
Eugenio Flores
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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.
 
Roel De Nijs
Sheriff
Posts: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
  • 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: 10662
144
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic