Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asking for db location in Network mode

 
Glen Iris
Ranch Hand
Posts: 172
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dennis Grimbergen
Ranch Hand
Posts: 159
IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It simply means that you should specify the host (and port number) in network mode (where the server is running).
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Glen Iris
Ranch Hand
Posts: 172
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys. Initially, that is what I thought. I'm just over thinking things at this stage
 
Jayesh A Lalwani
Rancher
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic