• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

nx: One program or two!?

 
John Tusker
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I'm writing one program only for the URLyBird 1.2.2. Depending on the command-line parameter, it functions as client, server or stand-alone. In other words, you install a program on the server and run it in server mode. You then install the exact same code on the client machine and run it as a client, with a different command line parameter. It sounds like other people are writing 2 separate programs! Is either way "right" (acceptable to Sun) or am I clearly wrong? Help, please!
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12014
220
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi John
Welcome to JavaRanch.
What you are doing sounds fine.
Prior to April this year, all candidates received the Fly By Night Services assignment which had no requirement for executable jar files. So anyone still working on that assignment could easily have two or more applications.
An alternate way to develop the new assignment is to develop the client and server as stand alone applications, and then later create a wrapper class that just looks at the command line parameter and calls the appropriate main function in your stand alone application. That might be what the other people are doing.
Regards, Andrew
[ October 30, 2003: Message edited by: Andrew Monkhouse ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic