Originally posted by Anirudh Vyas:
Well; it begs the question doesn't it? connection URL can contain the user name and password; you could parse the connection URL to retrieve password
Only if you pass the password that way. Most people don't for security reasons. I recommend putting the password somewhere you can get to it. Preferably in an encrypted property file. This is preferable than the program trying to parse it as nobody can get their hands on the actual password.