This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX:About modify the location of the database

 
xi ruo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Section of my assignment,following:

Your choice of RMI or serialized objects will not affect your grade, but no other approach is acceptable. In either case, the program must allow the user to specify the location of the database, and it must also accept an indication that a local database is to be used, in which case, the networking must be bypassed entirely. No authentication is required for database access.

About "the program must allow the user to specify the location of the database".
Is this operation taked place in server-side or client-side?
Where does the button(or menu item) which touchs off upper event place?
 
Ulrich Heeger
Ranch Hand
Posts: 266
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Xi,
I can't help at this point because I'm still working at the data access layer but you can look at this thread: NX: URLy Bird 1.3.1 Suncertify.properties
I think there you can get an answer on your question.
Regards
Ulrich
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well in local mode it would be on the client side, and in remote mode it would be on the server side.
For example, with remote mode, the location of the db.db file can be supplied when the server is starting up.
In Local mode, since there is no server, then the GUI must provide a mechanism for the user to select the location of the db.db file.
Hope that helps.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic