I am using sqlunit as an ant job in a multi-user environment. Is there a more secure way to pass in the jdbc connection password rather than entering the password into the test.xml file?
Thanks in advance,
Chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are many ways to pass in the Connection properties. They are all documented in the User Guide Chapter "Getting Connections" which begins here: http://sqlunit.sourceforge.net/c2991.html
You can pass it in from the calling build.xml, from an external properties file, or even write your own wrapper to build and pass in your Connection object, although the last limits you to a single connection per test suite, which may not be what you want with your application. The full list in the user guide.
-sujit
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using sqlunit as an ant job in a multi-user environment. Is there a more secure way to pass in the jdbc connection password rather than entering the password into the test.xml file?
Thanks in advance,
Chris
Hi Chris,
There are many ways to pass in the Connection properties. They are all documented in the User Guide Chapter "Getting Connections" which begins here:
http://sqlunit.sourceforge.net/c2991.html
You can pass it in from the calling build.xml, from an external properties file, or even write your own wrapper to build and pass in your Connection object, although the last limits you to a single connection per test suite, which may not be what you want with your application. The full list in the user guide.
-sujit