struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Convention for keeping passwords out of struts.xml
Date Thu, 12 Mar 2009 18:56:48 GMT
Jim Kiley wrote:
> Dave's right -- a good choice here is to keep that kind of data in a server
> settings config file, and set up your application to pull the database
> context info out of the JNDI context.  Check out
> http://tomcat.apache.org/tomcat-5.5-doc/index.html
> <http://tomcat.apache.org/tomcat-5.5-doc/index.html>for
> details on this sort of thing.

I'm with Jim. But that aside you can also use Spring's 
property-placeholder (or whatever it's called) to keep passwords in a 
property file, the values of which are then referenced inside the Spring 
config file.

This seems more like a Spring-ish topic, though.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message