This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Asking for db location in Network mode Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Asking for db location in Network mode" Watch "Asking for db location in Network mode" New topic
Author

Asking for db location in Network mode

Glen Iris
Ranch Hand

Joined: Jul 13, 2011
Posts: 164

Hi Guys,

My instructions state:

The program must allow the user to specify the location of the database in both standalone and network mode and persist the db configuration details in suncertify.properties file.


I know when I start the client I will need to ask for db location.
I know when I start the server I will need to ask for db location.

Why would a user specify where the server database is located when starting in network mode?

G


OCPJP 6, OCMJD
Dennis Grimbergen
Ranch Hand

Joined: Nov 04, 2009
Posts: 142

It simply means that you should specify the host (and port number) in network mode (where the server is running).


SCJP, SCWCD, SCJD
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2266
    
    3

Howdy, Glen!

Why would a user specify where the server database is located when starting in network mode?


Well, when you start the application in server mode, you have to know where the .db file is located, so you can load its records. In my case, when you start the application in server mode, I ask for the port number in which the server will be expecting calls and also the database location.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Glen Iris
Ranch Hand

Joined: Jul 13, 2011
Posts: 164

Thanks guys. Initially, that is what I thought. I'm just over thinking things at this stage
Jayesh A Lalwani
Bartender

Joined: Jan 17, 2008
Posts: 2413
    
  28

Glen Iris wrote:Thanks guys. Initially, that is what I thought. I'm just over thinking things at this stage


Something that we are all guilty of
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Asking for db location in Network mode