Hi,

Could you post the fault you get?

If the timeout occur between cxfbc:provider and external server, you need set timeout for cxfbc:provider also. As cxfbc:provider play the role as a client, so you need set timeout for the underlying transport(depend on you're using http or jms transport) client (we call it conduit for transport client in cxf),

[1] is the link how to set it for http transport
[2] is the link how to set it for jms transport

Actually we have a testcase to demonstrate how to specify underlying transport timeout for cxfbc provider, [3] and [4] are related configurations.
[1]http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html
[2]http://cxf.apache.org/docs/jms-transport.html
[3]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/org/apache/servicemix/cxfbc/jms_transport.xml
[4]https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-cxf-bc/trunk/src/test/resources/org/apache/servicemix/cxfbc/jms_test_timeout.xml

Hope all these helps.

Freeman

On 2010-11-1, at 下午11:46, Felipe Fraga wrote:

Hello,

I am using Fuse 4.2.0, so servicemix 4.2.0, although I have already
tried with the 4.3.0.

I am experiencing what seems to me a timeout problem. At exactly 60
seconds, the client talking to the bus get a Fault, but the targeted
application is still processing.

If I bypass the bus, everything works fine.

I am using CXF Binding Component. Both consumer and provider. They are
both defined in the same service unit as follow:

<cxfbc:consumer wsdl="classpath:ElementService.wsdl" timeout="12000"
locationURI="http://0.0.0.0:8092/san-n1/services/ElementService";
targetService="sann1:ElementService"
targetInterface="sann1:ElementService"
endpoint="SANN1ElementServiceExternalEndpoint" />

<cxfbc:provider wsdl="classpath:ElementService.wsdl"
locationURI="http://localhost:8080/san-n1/services/ElementService";
interfaceName="sann1:ElementService" service="sann1:ElementService"
endpoint="SANN1ElementServiceInternalEndpoint" />

As you can see I have set the timeout property to the consumer but I
still get the fault. Are there any other timeouts? NMR maybe? Does the
timeout property work? Am I missing something?

Google didn't point me to the solution unfortunately.

Thanks in advance.

Felipe Fraga


--
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to