camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Quinn Stevenson <qu...@pronoia-solutions.com>
Subject Re: Convert message into two converters and dilliver them to one destination
Date Tue, 19 Jul 2016 16:56:36 GMT
I don’t think multicast will do what you’re after - it sends the same message to multiple
endpoints.

I think you could accomplish what you’re after using three routes:

<route>
  <from uri=“{{source}}” />
  <multicast>
    <to uri=“direct:a” />
    <to uri=“direct:b” />
  </multicast>
</route>

<route>
  <from uri=“direct:a” />
  <convertBodyTo type=“objectTypeA” />
  <to uri=“activemq:FOO.BAR” />
</route>

<route>
  <from uri=“direct:b” />
  <convertBodyTo type=“objectTypeB” />
  <to uri=“activemq:FOO.BAR” />
</route>


> On Jul 19, 2016, at 7:21 AM, redpower1989 <redpower1989@hotmail.com> wrote:
> 
> Maybe i could make it more clear. Can i use multicast with too converters ?
> Something like that
> 
> <multicast>
>      <convertBodyTo type="objectTypeA" />
>      <convertBodyTo type="objectTypeB" />					
> </multicast>
> 
> <to uri="activemq:FOO.BAR"/>
> 
> I am trying that but i get the message to be converted only to typeB. Is
> there any possible way to copy the message convert it to A and B and send it
> to queue?
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Convert-message-into-two-converters-and-dilliver-them-to-one-destination-tp5785205p5785254.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message