camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Is it possible to send a message towards 2 endpoints but the message is unmarshalled for one of the two destinations ?
Date Tue, 15 Jul 2008 12:56:58 GMT
2008/7/7 cmoulliard <cmoulliard@gmail.com>:
>
> Hi,
>
> Is it possible to send a message towards 2 endpoints (in //) but the message
> is unmarshalled for one of the two destinations (and not for the other) and
> if an error occurs everything is rollbacked ?
>
> Idea:
>
> From("file:c:///temp")
> .parrallel(
> .to("bean:saveContent".unmarshall(jaxb))
> .to("activemq:queue.myqueue"));

This should do what you want...

from("file://temp").
beanRef("saveContent").
unmarshall().jaxb().
to("activemq:myqueue")

though the rollback only applies to transactional resources - which in
the above route is only the activemq endpoint.

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message