Hi I recently updated my JAX-WS Handler tutorial
(http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial, source code
https://github.com/gmazza/blog-samples/tree/master/jaxws_handler_tutorial)
originally from April 2010.
It runs fine on Metro, mostly fine on CXF except for one problem: In the
web service implementation
(http://www.jroller.com/gmazza/entry/jaxws_handler_tutorial#hand6), the
WebServiceContext variable is not getting populated in CXF as it is with
Metro:
@Resource
private WebServiceContext context;
public int doubleIt(int numberToDouble) {
System.out.println("Context is" + ((context== null) ? "null" : "not
null"));
return numberToDouble* 2;
}
Metro returns "not null", while CXF returns "null". The source code is
the same, just the dependencies are switched between the two stacks. Is
there anything different I need to do (that I didn't need to do before)
in order to get the CXF SEI to have a populated context value?
Thanks,
Glen
--
Glen Mazza
Talend Community Coders
coders.talend.com
blog: www.jroller.com/gmazza