6 Replies Latest reply on Jan 28, 2011 6:52 AM by Claus Ibsen

    http component-setheader-previousexchange

    Gabor Fericsan Newbie

      hi,

      i would like to build a route that periodically take a http message with "timestamp" parameter where the parameter is in the body of the previous message. (The first message haven't "timestamp" parameter.) I think the following theoretical schema:

       

      from timer

         choose

            when previousexchange is not null

               setheader("timestamp")

                  simple(previousexchange.getin.getbody)xpath(/timestamp)

            otherwise

               removeheader("timestamp")

            http uri

      ... processing...

       

      I would like to define the route with Spring DSL (xml).

       

      Could anyone help me?

       

      Thanks