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

NX: Standalone/Remote mode

 
Priscilla Tan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,
In the URLyBird 1.2.3 assignment, there are 3 command modes
java -jar <path_and_filename> [mode]
where mode can be server, alone or "left out entirely".
Question 1:
For the non-networked mode, do i jus use the alone mode only to run the program? I do not need to execute the "left out entirely" mode in the non-networked mode right?
Question 2:
As for the network mode, i need to execute both the server and "left out entirely" mode in order for the program to run?
Please help me, thank you very much!
 
Mark Smyth
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think It will look something like this depending on how you set it all up
public static void main (String[] arg)
if(args[0].equals("alone"){
new ClientUI()
new LocalClientServices(); //Also start database
}
else if(args[0].equals("server"){
new Server() //Also DB started by server
}
else{
new ClientUI()
new RemoteClientServices();// Connect to Server.
}
 
Behnam Gohari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,
Originally posted by Mark Smyth:

else if(args[0].equals("server"){
new Server() //Also DB started by server
}

What is your interpretation of Server here? What does Server() start up?
Is it just the database or is it more....?
Thanks,
Behnam
[ February 06, 2004: Message edited by: Behnam Gohari ]
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Behnam,
Originally posted by Behnam Gohari:
What does Server() start up?
Is it just the database or is it more....?

The database needs to be started, of course. But also, if you're using RMI for your network communications solution, you probably want to register your remote database object with the RMI registry, so that network clients can lookup this remote database object and access your database.
I'm not Mark, but hope this helps anyway.
George
[ February 06, 2004: Message edited by: George Marinkovich ]
 
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 Pris cilla
Welcome to JavaRanch.
We don't have many rules here, but one we do have is the JavaRanch Official Policy on Displayed Names. According to that policy your displayed name should be a real name. Could you please update your profile to display your real name? You can change it here
Thanks, Andrew
 
Behnam Gohari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by George Marinkovich:

I'm not Mark, but hope this helps anyway.
George
[ February 06, 2004: Message edited by: George Marinkovich ]

Thanks George. It all makes sense now...
Greetz,
Behnam
 
Priscilla Tan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I understand how to do my work!
 
Fred Beltr�o
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andrew Monkhouse:
Hi Pris cilla

Welcome to JavaRanch.

We don't have many rules here, but one we do have is the JavaRanch Official Policy on Displayed Names. According to that policy your displayed name should be a real name. Could you please update your profile to display your real name? You can change it here

Thanks, Andrew


I did not understand why her name is not according the policy. What is wrong with the name Priscilla Tan?

Best regards,

Fred
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic