thx , i use ApplicationContextAware and it works like a charm Bruno
2009/5/1 Ian Roberts <[email protected]> > 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 >
