So WebServiceContext is available now at runtime, despite that log
message ? If yes then it's good, one less problem to worry about :-)
Yes it's good. :-)
So now I have a single implementation class with :
private ServletContext servletContext;
public void setServletContext(ServletContext servletContext) {
this.servletContext = servletContext;
}
and a beans.xml like this :
<bean id="MyService" class="my.package.MyServiceImpl">
<property name="servletContext">
<bean
class="org.springframework.web.context.support.ServletContextFactoryBean" />
</property>
</bean>
And tis way, context injection works for both SOAP and REST.
But the JAX-RS anotations are still not inherited... I'll look into it
Thanks.