cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Need help in getting HTTP timeout to work for JAX-RS
Date Thu, 12 Apr 2012 08:59:36 GMT
Hi Dan
On 11/04/12 23:41, Daniel Kulp wrote:
>
> Sergey,
>
> With the latest fix to the spring parser's factory class name, I think his
> syntax below will work.  In your testcase that you added, you do:
>
>   <http:conduit id="httpConduit" name="*.http-conduit">
>
>
> but the "id" effectively overrides the "name" attribute when doing the
> spring lookup for the wildcards and thus doesn't work.  If you remove the id
> attribute, your test actually passes:
>
>   <http:conduit name="*.http-conduit">
>
> Can you verify that?
>

Indeed, works perfectly now, I was experimenting with the 'depends-on' 
so left that id there, great, thanks for the help
Sergey

> Dan
>
>
>
>
> On Wednesday, April 11, 2012 11:20:34 PM Sergey Beryozkin wrote:
>> On 11/04/12 16:00, domino wrote:
>>> Sergey, JAXRSClientFactory picks it up and so does WebClient, *but
>>> jaxrs:client doesn't!!* Is this a known issue? Or something is wrong
>>> with my config shown below?
>>>
>>>       <http:conduit name="*.http-conduit">
>>>
>>>           <http:client ReceiveTimeout="300000"></http:client>
>>>
>>>       </http:conduit>
>>>
>>>       <jaxrs:client id="myService" address="${services.url}"
>>>
>>> serviceClass="rs.service.MyService" inheritHeaders="true">
>>>
>>>           <jaxrs:headers><entry key="Accept"
>>>
>>> value="application/json"/></jaxrs:headers>
>>>
>>>       </jaxrs:client>
>>
>> Indeed I can see that only jaxrs:client that is missing the wildcard
>> http conduit names, please use the specific conduit names as suggested
>> in the documentation, example, using the qualified names, such as
>> "{http://bar}Foo.http-conduit"
>>
>> One can control the namespaces on jaxrs clients/servers, example, please
>> see
>>
>> http://svn.apache.org/repos/asf/cxf/trunk/systests/jaxrs/src/test/java/org
>> /apache/cxf/systest/jaxrs/resources/jms_server_config.xml
>>
>> We'll check why wildcards for jaxrs:clients do not work a bit later on
>>
>> Thanks, Sergey
>>
>>> Thanks
>>>
>>> --
>>> View this message in context:
>>> http://cxf.547215.n5.nabble.com/Need-help-in-getting-HTTP-timeout-to-wo
>>> rk-for-JAX-RS-tp5629866p5633115.html Sent from the cxf-user mailing list
>>> archive at Nabble.com.


Mime
View raw message