• 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

URLyBird: question about RMI server

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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
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
reply
    Bookmark Topic Watch Topic
  • New Topic