I'm running CXF 2.5.2 with Spring 3.1.1
I declare my beans via
@Service
public class FooImpl implements IFooService {
}
inside FooImpl, @Autowired fields work just fine. However, @Context
UriInfo gave me a IllegalArgumentException for trying to set a $Proxy
to a UriInfo. I then added a <aop:aspectj-autoproxy
proxy-target-class="true"/> to my spring file. This worked (I think)
but a @Context mc gave a null pointer exception when I try to access
it. adding setters and moving the @Context annotation to the setters
did not help. heck,
@Context
public void setMc(org.apache.cxf.jaxrs.ext.MessageContext mc) {
System.out.println("***mc is set");
this.mc = mc;
}
did not result in the println being executed.
Finally, when I put the @Context MessageContext mc as a method
parameter, the injection works fine. Am I doing anything that's
unexpected with regard to MessageContext?
thanks
Jeff