Cool. That did the trick. Thanks!
-mike
On Nov 25, 2007 5:55 PM, Willem Jiang <[EMAIL PROTECTED]> wrote:
> Hi Mike,
>
> I just checked the code , you need to specify the Service Bean object to
> be injected with the WebServiceContext.
>
> Here is an example for you:
> private static void create
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.I
FYI , DI happens in JaxWsServerFactoryBean's[1] init() method.
[1]https://svn.apache.org/repos/asf/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/JaxWsServerFactoryBean.java
Willem.
Davide Gesino wrote:
Hi,
It's quite strange, the context should be injected... I thin
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?
>>
&
lly wrong here.
>
> Any ideas?
>
> Thanks,
> -mike
>
>
--
View this message in context:
http://www.nabble.com/restful_http_binding-and-WebServiceContext-tf4875856.html#a13969469
Sent from the cxf-user mailing list archive at Nabble.com.
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 invo
Hi Mike,
I just checked the code , you need to specify the Service Bean object to
be injected with the WebServiceContext.
Here is an example for you:
private static void createRestService(Object serviceObj) {
// Build up the server factory bean
JaxWsServerFactoryBean sf = new Jax
I am trying to figure out how to get access to WebServiceContext in the
restful_http_binding sample that comes with CXF 2.0.3. In
CustomerServiceImpl.java, I've added:
@Resource
private WebServiceContext wsContext;
to the CustomerServiceImpl class.
But wsContext isn't set when methods ar