Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Final Submission

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone -

I'm getting ready to submit my exam and I have a question about the final deliverables. It says that I should submit the original, unchanged database file that was supplied to me. I understand that much, but in order for my executable jar file to work from any directory, the database should also be in the runme.jar, correct? I'm just worried that they may modify the database in the root directory of the jar being submitted (not the runme.jar) and then it won't show up in the application. Will they move my runme.jar file or can I actually look in the directory and not the jar for the database file?

Thanks,
Jeff
 
Ranch Hand
Posts: 356
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

I had B & S, and in my assignment there was no farfetched possibility in which having the database file inside the runme.jar would be desirable or wanted.

Kai
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kai,

Thanks for the reply. My only concern is that since the database is not a specified parameter (well not in mine anyway) if they run the jar from a different directory (the same reason why I have my properties file in the jar file). Can I assume the will run the jar from the same directory as the database or should I provide a browse button for the server to select the database to read (which could lead to a host of all other problems)?

Thanks again.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
read the requirements document. The database location MUST be allowed to be specified in the user interface.
If yours doesn't allow that, you'd better fix that before submission or you'll get an automatic failure.
 
Jeff Storey
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Appreciate it - that's what I have, just confirming. Lastly, I have two other questions:

Do you think it is OK to have that config dialog appear each time the application starts as long as the last entered values appear (this keeps it persistent) or am I only supposed to have the dialog when the use requests it?

My other question is if there is some way to validate that a file is a valid database file for this application. I understand that it may have some magic cookie value at the beginning, but I don't know if that's a good way to tell if a file is valid or can I just let I/O errors happen and display error dialogs if it is a poorly formed input file?

Thanks -
Jeff
 
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic