Hi

This is how CXFServlet accesses it:

ApplicationContext wac = WebApplicationContextUtils.
            getWebApplicationContext(servletConfig.getServletContext());

Rice, if you need to do in the application code you can inject "@Context ServleContext sc"

Cheers, Sergey




On 15/06/14 03:58, Jason Pell wrote:
Its WebApplicationContextUtils

A good article which covers its use

http://www.mkyong.com/spring/spring-how-to-do-dependency-injection-in-your-session-listener/






On Sun, Jun 15, 2014 at 3:45 AM, David Karlsen <[email protected]>
wrote:

Spring provides a static method to get it. Don't have it at hand now.
Something utils.
14. Juni 2014 11:05 skrev "Rice Yeh" <[email protected]> følgende:

Hi,
   I have a need to get the WebApplicationContext created in CXFServlet
thru config-location parameter. How do I do it?

Rice



Reply via email to