We have an j2ee application which have an entry point as an MDB. The application does not have a web application. I have tried to initalize the WebApplicationContext through the ClassPathXmlApplicationContext by passing it the path of applicationContext.xml, but it cant seem to find it. (This is done on setMessageDrivenContext() in the MDB, by the way) I have a deployable ejb jar which contains all the classes and i placed the xml file in the package structure so it should be accessible from classpath.
I tried to use ClassPathXmlApplicationContext from a web application (placing applicationContext.xml in WEB-INF) and that works fine...
I this a known issue or am i doing something wrong here? Maybe there is better way of initalizing the ApplicationContext from the ejb container?