camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Way for a message to spawn new processors
Date Mon, 04 Jan 2010 02:00:30 GMT

You can use the ProducerTemplate to send a new message to whatever 
endpoint that you want to send to in the processor.

Here is an example[1] in apache wiki.



Pete Mueller wrote:
> Hey all, 
> I have an incoming message in an exchange that needs to be processed.  The
> processing of this message may create more messages. This is not a spliting
> action, in one case for example, data is analyzed and if the result of a
> computation is > X, a new alert message needs to be sent down a different
> camel route.
> My question is: Is there a "standard" way for a processor (which has one
> exchange with an in and out message) to create one or more new exchanges and
> send it off on it's way.  If so, since this exchange is created internally,
> and not from any component, how do you tell the exchange what route it is to
> take?  Is this what "direct" or "seda" is used for?
> thanks
> -pete

View raw message