Announcement Announcement Module
No announcement yet.
SingletonBeanFactoryLocator redundancy? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • SingletonBeanFactoryLocator redundancy?

    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?