I have one application context file(applicationContext.xml). Since I have 8 datasources I have seperated these bean in a DataSource.xml which application context import.
Originally Posted by al0
I load the application context the following way.
I copied my entire web application code(one servlet) into the test web application and it still worked for the test web application. I have tried running in both WebSphere and Jetty with negative result for the real application as I run the test web application in WebSphere.
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");