• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

choosing operating modes

 
Charles Dupin
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instruction.html says "Additionally, the program must be able to work in a non-networked mode. In this mode, the database and user interface run in the same VM and no networking is performed, and no sockets should be created. The user must be able to select the operating mode, although it is acceptable that the program stay in one mode once it has started up."

Is it acceptable that the user choose the operating mode with the command line used to start the client?
In my design the user can pass a server ort name as parameter or nothing. In both cases if the RMI lookup finds no link to the remte server or localhost server it starts in local non-RMI mode. The command line makes the difference.
Kind regards
Charles.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For my submission the command line is what determines the operating mode.
java -jar client.jar for local mode
java -jar client.jar <<server address>> for remote mode.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic