camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Thomas <>
Subject Send Message to a queue before start & end of a route starts prcoessing
Date Fri, 28 Aug 2015 12:36:52 GMT

    I have set a Timer componet pointing to a DB, which is triggered at
some interval.  I want to send a message to a queue with some value set in
the Header before the processing starts & after its ends .


Message -    STARTED
Message - DATA1
Message - DATA2
Message -   END

I tried the below approach i don't see any message in the queue

  <route customId="false" id="routeMASTER1"
            <from uri="timer://getData?period=2h" />
            <process ref="CustomHeaderProcessor" />
            <onCompletion mode="BeforeConsumer">
                  <setHeader headerName="TAG">
                            id="to4" />
            <onCompletion mode="AfterConsumer">
                  <setHeader headerName="TAG">
                            id="to5" />
            <setBody id="setBody1">
                <constant>select * from TEST</constant>
            <to uri="jdbc:DS?outputType=StreamList&amp;statement.maxRows=3"
id="to1" />

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message