how to override JndiObjectFactoryBean in spring and set decrypted password in java

旧城冷巷雨未停 提交于 2019-12-01 13:10:15

I figured it out, Instead of overriding the JndiBeanFacotry, I used the tomcat data source "factory" property, it allows you to have a custom resource factory class that gets called every time data source lookup is instantiated.

Below link specifies step by step configuration,

http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html

"Adding Custom Resource Factories" section emphasises how to write a simple custom resource factory.

Thanks.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!