jQuery in Action, 2nd edition*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: A confusion about specifying the location of the  database file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: A confusion about specifying the location of the  database file" Watch "NX: A confusion about specifying the location of the  database file" New topic
Author

NX: A confusion about specifying the location of the database file

Bigwood Liu
Ranch Hand

Joined: Feb 26, 2003
Posts: 240
Hi,
My assignment said,
The program must allow the user to specify the location of database.
1.Does it mean that I can use "server"/nothing to indicate the databse is from network, or "alone" to indicate the database is in local machine, in this case the location is predefined? or
2.I have to choose a database through GUI either in network mode or in non network mode, thus in network mode there should be a GUI at the server side to choose the database file, while the client only need connect to it; in non network mode the user GUI can be used to choose the database file.
In addition, in network mode need I specify which host I will connect, need I specify the address of the host?
Thank you,
Regards,
Damu
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Hi Damu,
I think the consensus on this forum is that the client:
  • in standalone mode has to be able to choose a database file
  • in networked mode has to be able to specify the server


  • As well, the server has to be able to choose the database file.
    Regards, Andrew


    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
    Bigwood Liu
    Ranch Hand

    Joined: Feb 26, 2003
    Posts: 240
    Thank you Andrew!
    Bob Nedwor
    hangman
    Ranch Hand

    Joined: Aug 17, 2005
    Posts: 215

    Andrew:
    So if this is still true, even for the B&S project, I pretty much need to prompt the user for the path and filename of the database file using a JFileChooser or something, when running in ALL modes. Is that correct?

    Thanks for your advice.
    --Bob


    Bob N
    SCJP - 1.4
    SCJD - (B&S) Used 1.5 And It Runs On Solaris10
    SCWCD - Thanks to HFSJ!!
    Daniel Dalton
    Ranch Hand

    Joined: Mar 20, 2005
    Posts: 146
    Hi Bob -

    No, a client connecting to your server probably has no need to know where the data file is located - it needs to know where the server is, but that's not the same as where the file is.
    Bob Nedwor
    hangman
    Ranch Hand

    Joined: Aug 17, 2005
    Posts: 215

    Thanks, Daniel! Yes, that makes sense. I will go with filechoosers on the other two modes, then.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: NX: A confusion about specifying the location of the database file
     
    Similar Threads
    URLy Bird: database location
    nx:All of URLy Bird1.1.3 about record lock
    Java Certified Developer 1 Question
    NX: Specifying directory of database via server mode - totally lost
    2 tier architecture