File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S I Don't Need To Prompt For Any Config Info When Running In "Alone" Mode, Right?

 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need for an ipaddress, service or port. We all know where the data file is (../db-2X3.db). Let me know if I am off base. Thanks so much for your opinion.
--Bob
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's fine. In fact you don't need to prompt in any mode if you're able to use the previous settings, else prompt. You'll probably put the user in a sort of a loop unless you can reuse settings. It would attempt to initialise -> fail -> check if user wants to reconfigure settings -> attempt to initialise -> and so on until either successful or the user chooses to exit.
As you said in the case of 'alone' the only cause for failure is the db not being there, it's possible so cater for that by catching the exception -> prompt to reconfigure settings etc.

I just always loaded the same settings screen, nothing special for just the missing database.
 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, TA. Yes. On the other two modes, I only prompt if the suncertify.properties are missing or inadequate.
 
Bob Nedwor
hangman
Ranch Hand
Posts: 215
Eclipse IDE Oracle Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've changed my position on this. When running in Alone mode, I think I need to prompt the user for the DB path/filename if the info does not exist in the suncertify.properties.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic