|
From: Dion A. <di...@al...> - 2004-10-12 15:17:53
|
Hi guys - When I have code in something like a ServletContextListener I can get access to the application context easily via: ApplicationContext appContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext( )); However, I have a class that is initiated from third party library, which is loaded from WEB-INF/lib. This third party library has nothing to do with the web, so there is no way to get the ServletContext, and hence the application context. Is there anyway that I can get from this loaded class to my nice context? E.g. can my code look at its ClassLoader and find anything from there? Cheers, Dion |