You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by pevgen <pe...@km.ru> on 2009/05/06 11:36:09 UTC

multicast transaction

Hi.
I have a route like this :

<route>
  <from uri="direct:a"/>
  <multicast>
         <to uri="activemq:queue:runQueue"/>                                        
         <to uri="activemq:queue:consumeQueue"/>
  </multicast>
</route>

How can i send my message into the two "to" endpoints in one transaction ?

Thanks,
Evgeny


-- 
View this message in context: http://www.nabble.com/multicast-transaction-tp23403184p23403184.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: multicast transaction

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, May 6, 2009 at 11:36 AM, pevgen <pe...@km.ru> wrote:
>
> Hi.
> I have a route like this :
>
> <route>
>  <from uri="direct:a"/>
>  <multicast>
>         <to uri="activemq:queue:runQueue"/>
>         <to uri="activemq:queue:consumeQueue"/>
>  </multicast>
> </route>
>
> How can i send my message into the two "to" endpoints in one transaction ?
See the transaction client EIP
http://camel.apache.org/transactional-client.html

You need the JMS broker to be transacted. There is a bit on this here:
http://camel.apache.org/jms.html

And beware doing JMS consume -> JMS producer in one TX is usually not
working well. But you starting endpoint is a direct.



>
> Thanks,
> Evgeny
>
>
> --
> View this message in context: http://www.nabble.com/multicast-transaction-tp23403184p23403184.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration
Interview with me:
http://architects.dzone.com/articles/interview-claus-ibsen-about?mz=7893-progress