Sep 23rd, 2005, 09:20 AM
I'm trying to access the BeanFactory outside the context of a ServletContext so i can use "getBean(BEAN_NAME)"
It seems that this should be possible using the "classpath:applicationContext-*.xml"
parameter somehow, b/c I'm already using "/WEB-INF/applicationContext-*.xml"
in my web.xml file for the "contextConfigLocation"
What do i need to do in order to access the BeanFactory in, say a DAO layer?
The javadocs for SingletonBeanFactoryLocator seem like you have to explicitly
add each and every applicationConfig file to a reference for ClassPathXmlApplicationContext
to obtain it.
Am I missing something?