There are two options.

1) pass on the user name and password as request parameters and use
the request parameters in the datasource

<dataSource user="x" password="${dataimporter.request.pwd}" />
where pwd is a request parameter passed

2) if you can create jndi datasources in the appserver use the
jndiName attribute in dataSource



On Tue, May 5, 2009 at 3:32 PM, con <convo...@gmail.com> wrote:
>
> I have a spring-ibatis project running in my development environment.
> Now i am setting solr search as part of the application. Everything works
> fine as expected and solr is providing good results.
>
> The only problem i am having is that i have to set the database parameters
> including the username and password in the data-config.xml.
> Two drawbacks in this aproach is that
>        1) the db parameters are been exposed to outside
>        2) dynamically loading the database params on demand (as i have 
> multiple
> databases)
> I think this can be solved by using the db configurations that is defined in
> the spring configs.
>
> Is there anyway to achieve this. Or atleast can i externalise these
> parameters from the data-config.xml, so that i can encrypt the password.
>
> Thanks
> con
> --
> View this message in context: 
> http://www.nabble.com/Externalize-database-parameters-from-data-config.xml-tp23384483p23384483.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
-----------------------------------------------------
Noble Paul | Principal Engineer| AOL | http://aol.com

Reply via email to