fabric-camel, cxf endpoint and ReceiveTimeout

Solution In Progress - Updated -

Issue

I have two projects that use fabric-camel and cxf to communicate. The server is taking more than 1 minute to return it's response and the client time out before the server could return it's result. How can we set timeouts on the cxf endpoints?

Here is sample of server side camel route:

<bean id="Calculator" class="org.jboss.fuse.samples.camel.cxf.CalcProcessor" />

<camelContext xmlns="http://camel.apache.org/schema/blueprint">
    <route id="cxf">
        <from uri="fabric-camel:cheese:cxf:http://0.0.0.0:10014/calc?serviceClass=org.jboss.fuse.samples.camel.cxf.CalcService" />
        <process ref="Calculator" />
    </route>
</camelContext>

And client side camel route (proxy):

<camel-cxf:cxfEndpoint id="Calculator"
    address="http://localhost:10018/calculator"
    serviceClass="org.jboss.fuse.samples.camel.cxf.CalcService" />

<camelContext xmlns="http://camel.apache.org/schema/blueprint">
    <route id="calculator">
        <from uri="cxf:bean:Calculator" />
        <log message="The message contains ${body}"/>
        <to uri="fabric-camel:cheese"/>
    </route>
</camelContext>

Environment

  • JBoss Fuse
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.