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 questions

 
Santosh Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just needed a couple of questions for URLyBird 1.2.3

1. what should the executable programs in runme.jar called? can you just name them client.jar and server.jar?
2. the directions say that client & server programs must both have a mode argument, "server", "alone" or empty. Why would you pass a "server" argument to the server program or for that matter "alone"? The server should only have one mode to start up. And whats the difference between "alone" and empty (for the client)?

thanks for any help,
-Santosh
 
Santosh Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh yeah, one more question:
how do I tell the server (in networked mode) and the client (in standalone) where the db file is? Just assume the db file is in the current working directory?
 
mike acre
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Santosh Joseph:
just needed a couple of questions for URLyBird 1.2.3

1. what should the executable programs in runme.jar called? can you just name them client.jar and server.jar?



No reason to have them in separate jars, infact since the runme.jar must be executable for ALL 3 modes, I would say don't do that.



2. the directions say that client & server programs must both have a mode argument, "server", "alone" or empty. Why would you pass a "server" argument to the server program or for that matter "alone"? The server should only have one mode to start up. And whats the difference between "alone" and empty (for the client)?



There should only be 1 application (runme.jar) this has 3 possible modes depending on the command line, as you note. The difference between "" & "alone" is that as stated in the spec, "alone" causes the whole app to run, without the netweorking, ie the GUI will connect to the database directly. "" causes the client to run without the database but network connect itself to the server. "server" causes the server mode to run on the same or a different machine and provide a service to the client mode running on the same or different machine.

oh yeah, one more question:
how do I tell the server (in networked mode) and the client (in standalone) where the db file is? Just assume the db file is in the current working directory?


You perhaps shouldn't do that the spec says:

the program must allow the user to specify the location of the database

So have some dialog perhaps that lets the user enter the location. Note that location means different things for different modes. For server mode, the file path is required, but you may also let the user configure the port. For client mode the servers ip & port is required. For alone mode, the file path is required.
 
Santosh Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the clairification. i'm still a little confused on specifiying the db file, lets say i do:
"java -jar runme.jar server" , then the server starts up, but how i can specify the db file? it can't be through the command-line and it can't be through the gui since the server isn't a gui. the sucertify.properties file?
 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Santosh Joseph:
thanks for the clairification. i'm still a little confused on specifiying the db file, lets say i do:
"java -jar runme.jar server" , then the server starts up, but how i can specify the db file? it can't be through the command-line and it can't be through the gui since the server isn't a gui. the sucertify.properties file?


The server must have a GUI that lets you specify the database file name and the server port. This information must be saved in the suncertify.properties file in the current directory. At least that's my reading of the "must" clauses in the packaging. Also the server must be able to start up without requiring any command line configuration and with the properties file missing. People have been given automatic failures for getting this wrong.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic