A blog about my daily tech ramblings.

Tuesday, 4 October 2011

Accessing Spring in Generic Web Applications

October 04, 2011 Posted by Sachin Handiekar No comments

A web application can load Spring's application context be registering the servlet listener ContextLoadListener. This listener stores the loaded application context into the web application's servlet context. Later, a servlet, or any object that can access the servlet context can access the Spring's application context through the WebApplicationContextUtils.getRequiredWebApplicationContext() method.


Code goes here....

0 comments:

Post a Comment