I have certain JDBC resources configured in my Tomcat server.xml file. Using those, I can connect remote databases.

For example

<Resource name="jdbc/hox" auth="Container" type="javax.sql.DataSource" 
                    username="hox" password="hox123" maxTotal="10" maxIdle="5"
                    maxWaitMillis="10000" validationQuery="Select 1"  />

Now I would prefer to use encrypted password rather using plain text password "hox123".

I have searched many blog posts but nothing seems to be providing me complete details. I am still not sure whether it is possible or not.

  • How would the password be decrypted before use? – EEAA Jun 1 '17 at 17:48
  • The solution must be provided either by Tomcat or MySQL – Suyash Jain Jun 1 '17 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.