Configuring WebApplicationContext
Hello all..
I'm trying to access beans in my applicationContext.xml file without having to use any sort of ClassPathXMLApplicationContext method. I just want the beans to available to me upon start up of my web application. Do I need to configure this in my web.xml??
Below is my current web.xml.. Any help is appreciated!
lt;context-paramgt; lt;param-namegt;log4jConfigLocationlt;/param-namegt; lt;param-valuegt;/WEB-INF/classes/log4j.propertieslt;/param-valuegt; lt;/context-paramgt; lt;context-paramgt; lt;param-namegt;contextConfigLocationlt;/param-namegt; lt;param-valuegt;/WEB-INF/classes/applicationContext.xmllt;/param-valuegt; lt;/context-paramgt;
lt;servletgt; lt;servlet-namegt;contextlt;/servlet-namegt; lt;servlet-classgt;org..web.context.ContextLoade rServletlt;/servlet-classgt; lt;load-on-startupgt;1lt;/load-on-startupgt; lt;/servletgt;
lt;listenergt;
lt;listener-classgt;org..web.util.Log4jConfigList enerlt;/listener-classgt; lt;/listenergt; lt;listenergt; lt;listener-classgt;org..web.context.ContextLoade rListenerlt;/listener-classgt; lt;/listenergt; |