You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by pfen <pf...@gmail.com> on 2010/07/22 12:03:33 UTC

sending mulitple JMS messages in one transaction

Hello,
I need to implement the following scenario:
There is one big input message sent to the BUS (e.g. FilePoller reads it and
send to the BUS)
This messages should be splitted to several ones by some XPath (splitter can
be used)
All splitted messages should be sent to the JMS queue. If error occurs
during sending one of them Exchange should be failed and already sent
messages should not be really present in the JMS queue.
Looks like all messages produced from one input message should be sent in
one transaction.
Is it really possible to achieve?

I will appreciate for any hints.

Thank you.

-- 
View this message in context: http://servicemix.396122.n5.nabble.com/sending-mulitple-JMS-messages-in-one-transaction-tp1833775p1833775.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: sending mulitple JMS messages in one transaction

Posted by Sanjit <sa...@wipro.com>.

Hi pfen,
          Did you check "jencks"? It facilitates transaction management for
ActiveMQ.
Otherwise, you can achieve by adding an attribute << transacted="jms" >> in
your xbean.xml file like below:

<jms:consumer service="test:MyXYZService" endpoint="jms"
 targetService="test:MyXYZConsumerService"
  ........
 marshaler="#marshaler"
 transacted="jms" />
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/sending-mulitple-JMS-messages-in-one-transaction-tp1833775p1842335.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.