Mike,

Are you using CXF 2.0.3?
Also, is the impl created via a jaxws:endpoint spring config thing?   If 
so, can I see the spring config?

Onw workaround is to do:

context = new org.apache.cxf.jaxws.context.WebServiceContextImpl();

Kind of sucks though and would definitely not be portable.    It SHOULD 
have been injected in.


Dan


On Friday 23 November 2007, Michael Nelson wrote:
> I am trying to figure out how to get access to WebServiceContext in
> the restful_http_binding sample that comes with CXF. In
> CustomerServiceImpl.java, I've added:
>
>     @Resource
>     private WebServiceContext wsContext;
>
> to the CustomerServiceImpl class.
>
> But wsContext isn't set when methods are invoked. I've looked through
> the archives and the only issue I've seen seems to be if you use
> Spring and transactions (CXF-1074).
>
> I am new to CXF, so I may be doing something fundamentally wrong here.
>
> Any ideas?
>
> Thanks,
> -mike



-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to