Check [1]. Something like:
from("...")
.enrich("activemq:...", aggregationStrategy)
.to("...");
[1] http://camel.apache.org/content-enricher.html
Best,
Christian
-----------------
Software Integration Specialist
Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Mon, Oct 21, 2013 at 2:27 PM, ak-dak <[email protected]> wrote:
> Hi all,
>
> I have two camel applications which are communicating over ActiveMq which
> each other. "Application A" is using classes which are not in class path of
> "Application B". Now I want to call in my camel route of "Application A" a
> service method of "Application B" without loosing the exchange body.
> Thats my example route:
>
> <route>
> <from uri="timer://myTimer?fixedRate=true&period=5s" />
> <bean ref="myBean" method="saveEntityAndPut2Exchange" />
> <to uri="activemq:queue:getReferenceFromApplicationB" pattern="InOut" />
> <bean ref="myBean" method="workWithentityAndReference" />
> </route>
>
> First ("Application A"), I save an entity in method
> "saveEntityAndPut2Exchange" and put it into the camel exchange.
> Second, I want to get a reference value from "Application B" by using
> ActiveMQ.
> Third, I want to use the entity and the reference.
>
> The problem is, that "Application B" has not the class of the entity within
> the class path. Therefore I can't send the entity to "Application B". How
> can I save the exchange body with the entity till the end of the route?
>
> Best regards
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/ActiveMq-InOut-save-exchange-body-tp5741975.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>