[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Concurrent consumers from SEDA to CXF


I have encountered a strange behavior with a simple camel route and I would
like to ask for help of more experienced users. First, let me quickly show
the route:

The relevant part:
            <from uri="" />
            <to uri="MonitoringService" />

The whole blueprint:
<?xml version="1.0" encoding="UTF-8"?>
<osgi:blueprint xsi:schemaLocation="
1.0.0"; xmlns:xsi=
""; xmlns:cxf="http://camel.apache.
org/schema/blueprint/cxf" xmlns:osgi="
    <camelContext id="TestSAMLoggerSeda-ctx" xmlns="
schema/blueprint" streamCache="true">
            <from uri="" />
            <to uri="MonitoringService" />
    <cxf:cxfEndpoint xmlns:tns="
MonitoringService/v1" id="MonitoringService" address="http://localhost:8042/
MonitoringMock" serviceName="tns:MonitoringWebServiceService" endpointName=
"tns:MonitoringWebServicePort" wsdlURL="deploy/MonitoringService.wsdl">
            <osgi:entry key="dataFormat" value="PAYLOAD"/>

Now the expected behavior:
What I want to achieve is a queue from which 10 parallel threads are
processing messages, calling the cxf endpoint. The cxf endpoint takes
several seconds to answer, so I am expecting the speed of processing
somewhere about 1-2 messages per second.

Observed behavior:
Using JMX I can see X+N inflight messages in the route, where X is the
maximum number of concurrent http connections to the cxf endpoint and N is
the number of concurrent users. For some reason, the workers that are
waiting for the cxf endpoint to answer are not counted against the
concurrentConsumers limit. Only the workers that are waiting for the
connection to be established are counted against the limit of

What is the correct behavior for the route?
If my configuration is incorrect, how can I achieve my target behavior?

The camel version used is 2.20.

If someone would be able to help me, and explain what I did wrong, I would
very much appreciate it.

thank you for help
kind regards
Miroslav Borský

( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03522.html on line 129
Call Stack
10.0007368536{main}( ).../msg03522.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03522.html on line 129
Call Stack
10.0007368536{main}( ).../msg03522.html:0