• 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

NX: Standalone/Remote mode

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
}
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I understand how to do my work!
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic