camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hynek Cihlar <>
Subject Transform and multiply
Date Tue, 24 Apr 2012 16:03:47 GMT
Hello all,

what would be the best approach to solve the "transform and multiply"
behavior? That is, a message retrieved from an endpoint is transformed,
multiplied and sent down the route pipeline.

The closest I was able to come up myself is the following route config. It
probably also better explains the desired behavior.

            <from uri="jms:emailOutbox"/>
            <camel:loop copy="true">
              <camel:removeHeaders pattern="JMS*"/>
              <camel:removeHeaders pattern="breadcrumbId"/>
              <camel:throttle timePeriodMillis="1000">
                  <inOnly uri="smtps://mysmtpurl"/>

The little problem with the above is that it doesn't work :-). First,
${CamelLoopIndex} is not resolved and second the throttling inside of the
loop doesn't seem to produce the expected behavior (instead of the expected
5 email per second, it gives only 1 email a second).

Any input is very welcome.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message