-
Apr 9th, 2008, 11:38 AM
#1
How to get application context for a servlet context
Hi,
How to get an application context of a dispatcher servlet?
In other words, I want to get a bean defined in <servletName>-servlet.xml file, NOT in the ROOT application context specified directly in web.xml (applicationContext.xml by default).
The root application context is returned by WebApplicationContextUtils.getWebApplicationContex t(ServletContext) but that's not what I need - I need one of it's child contexts.
Many thanks,
Adam
-
Apr 9th, 2008, 01:27 PM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules