Tapdur wrote:
> So my question is how to lookup Spring context from CXF and use the Spring
> bean API at runtime ?
> (how to lookup the Servlet Context too from CXF ?)

Configure your implementation object as a Spring bean itself, i.e.
instead of <jaxws:endpoint implementor="my.pkg.ServiceImpl"/> do

<bean id="myServiceImpl" class="my.pkg.ServiceImpl" />
<jaxws:endpoint implementor="#myServiceImpl" ... />

Now your service object is a Spring bean it can implement
Spring-provided interfaces such as ApplicationContextAware or
ServletContextAware in the usual way and the things you want will be
injected automatically.

Ian

-- 
Ian Roberts               | Department of Computer Science
[email protected]  | University of Sheffield, UK

Reply via email to