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
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
Ta Ri Ki Sun
posted 11 years ago
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.