For the application I am working on, I am trying to externalize properties into a property file (like jdbc url's)
I have created a folder C:\webdata\myApp\properties which has log4j.properties and jdbc.properties.
I am using jdbc.properties file in spring applicationContext.xml file.
In WAS (Application servers > server1 > Process Definition > Java Virtual Machine) , I have configured classpath to include this folder.
But when I start my server, Spring is unable to find the jdbc.properties file. Also, I see following error, which is making me think that websphere is not able to find log4j.properties and jdbc.properties file. Am I missing anything here which i need to configure in websphere?
1. JDBC should be configured directly in WebSphere. (JDBC Provider, Data Source, J2C Authentication etc). To be able to use it with SPRING you can keep the DataSource JNDI name in web configuration xml file. Use pre-defined WAS variables (or create new if your driver is not listed) to point to specific jars etc. This way the core JDBC configuration (URL, user/password) is not lying outside in some property file and you will be able to take advantage of connection pools etc.