CXF - http-conf:conduit timeout is being ignored

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



CXF - http-conf:conduit timeout is being ignored



I have a CXF client, configured through Spring as follows:


<jaxws:client name="myWsService"
serviceClass="$myws.serviceInterface"
address="$myws.wsdlDocumentUrl"
username="$myws.username" password="$myws.password">
</jaxws:client>

<!-- Configure timeout -->
<http-conf:conduit name="http://127.0.0.1:9090/MyWSSOAP.http-conduit">
<http-conf:client ConnectionTimeout="$myws.timeout" ReceiveTimeout="$myws.timeout"/>
</http-conf:conduit>



The address for the webservice is


http://127.0.0.1:9090/MyWS



The problem is that when I set the timeout to a small value (e.g. 1000), it is still being ignored. Am I missing some configuration somewhere please?



Edit: I am using CXF version 2.4.1. I have tried updating to the latest version, 2.6.15, but still the http-conf:conduit's timeout value is ignored.



Note also that I have set <http-conf:conduit name="*.http-conduit"> and this works correctly, i.e. the timeout is respected.


<http-conf:conduit name="*.http-conduit">



Is there a way to identify which conduit is used at runtime?




1 Answer
1



Sorted this one out by using the regex version of the conduit:


<http-conf:conduit name="http://127.0.0.1:9090/.*">



Hope you'll find this answer useful.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

NwFrb,2NiIQxf,gh0guU,vr80vS GhlpuUaE79JwK IzKsm8ZiXfb,OV,osOXFBfY,Z3D
uBelU9pCu,iD3 nUEHz0xMoY,fczb,i,F8I,x8 wcou p6PdKpzSmgCf9T,6KoiI,fhVyRBkcBqhgHEyQc2

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Store custom data using WC_Cart add_to_cart() method in Woocommerce 3