Hi,
I am using spring 3.1.1 and initialized through web.xml.
When all my beans and its external resources that they depend on exist then spring gets initialized properly otherwise it doesn't.Code:<listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>spring</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/xxx-mvc-beans.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
I want to send an email when spring successfully initializes all beans and also I want to send an email when it fails.
I am trying to see if there is a way I can hook this logic in any of the spring's lifecycle methods..
Any pointers are appreciated.
Thanks


Reply With Quote