• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

before I submit

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Before I submit my solution I have a question:

"Network Approaches
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."



1.) Means user the user, who starts the RMI - server? This means the RMI - server choose the location of the database.
2.) Or means user the network client? Then the network client choose the location of the database. But there is only one database file. And in a few month this application will be a web application.

In my solution only the RMI - server can choose the location of the database - file and not the network client. But the sentence "indication that a local database is to be used" is confusing me absolutely. The user has the opportunity to give in the console:
java -jar <path_and_filename> [<mode>] (server, alone or left out entirely).
(Hint. In the standalone mode the user has allso the opportunity to choose the location of the database - file.)

Regards

Manuel
[ January 14, 2007: Message edited by: Manuel Arnoldi ]
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't understand what you're asking...
The user is "the user"...

The way I understand it ( ) is that:

mode = alone - is the indication that a local database is to be used.

In my suncertify.properties file I have 2 db locations.
DBAlone - local db location for "alone" mode.
DBServer - for the db on the server if in network mode.

(though I'm not sure if that's what you're asking )
 
I will suppress my every urge. But not this shameless plug:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic