cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Injecting a servlet context into an arbitrary bean
Date Wed, 04 May 2011 15:30:48 GMT
Arbitrary beans can probably implement

http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/context/ServletContextAware.html

Cheers, Sergey

On Wed, May 4, 2011 at 3:37 PM, Benson Margulies <bimargulies@gmail.com> wrote:
> This is probably more a spring question than a CXF question, but ...
> using org.springframework.web.context.ContextLoaderListener, I'd like
> to get a reference to the servlet context in a bean which is not a
> service bean of my jax-rs service. Can I just implement
> ServletContextListener, or is there some other spring-trick here?
>

Mime
View raw message