2008/7/7 cmoulliard <[EMAIL PROTECTED]>:
>
> 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

Reply via email to