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

URLyBird: question about RMI server

 
Nilesh Thali
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks,
given the restriction about only one command line arg (mode) to start the server, the two options i can think of, for specifying the db file name are:
1. put it in the suncertify.properties before submitting the assignment (makes it impossible to change without manually editing the properties file)
2. create an initial GUI for the server to allow specifying the db file name. seems a tad bit overkill?
any obvious options that i have missed? let me know if either of the above options are a specific no-no.
Thanks again,
Nilesh
 
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
Hi Nilesh,

To start the RMI server you have to provide the database location and the port the server will be running on. So after starting the server with the command line (restricted with just 1 arg, the mode) I created a small gui containing input fields for database location and port number, and also 2 buttons: 1 to start the server and another one to exit (and stop) the server.

Your first option will only work if you provide it in your code, because the properties-file should be created at runtime (first time application runs) not be added to the submission jar.

Kind regards,
Roel
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic