This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply 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: 157

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 (2/3)
Dennis Grimbergen
Ranch Hand

Joined: Nov 04, 2009
Posts: 126

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: 2212

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: 157

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: 1272
    
    7

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Asking for db location in Network mode
 
Similar Threads
NX: Question about database location.
db location
NX: About the db file
Passed SCJD!!!
NX: Core distributed computing concept and locking