3 Replies Latest reply on Jun 3, 2010 6:32 AM by ade

    Master/Slave, KahaDB, lost messages

    lufe

      ...

       

      Edited by: lufe on Jun 2, 2010 10:05 AM

        • 1. Re: Master/Slave, KahaDB, lost messages
          lufe

          We need some plug-in or directions of how to do the following:

           

          - send a message to a queue

          - pass the message from the queue to a camel route

          - arrive at a second queue

           

          and only when the message safely arrived on the second queue, would we like to acknowledge the message on the first queue. If the message would never reach the second queue, we would want it to be redelivered after a specific timeout.

           

          For that, we believe that XA transactions involving both queues would be a overkiller (too much overhead). We're therefore looking for a lightweight solution for a distributed transaction involving more than one queue.

           

          Edited by: lufe on Jun 2, 2010 10:08 AM

          • 2. Re: Master/Slave, KahaDB, lost messages
            lufe

            ...

             

            Edited by: lufe on Jun 1, 2010 9:24 AM

            • 3. Re: Master/Slave, KahaDB, lost messages
              ade

              Hi there,

               

              You shouldn't need XA transactions for this case. You can read from the first queue and write to the second queue all as part of the same JMS transaction.

               

              If you're using a Camel route, then enabling transactions is pretty easy - you can do this by simple config. See the Apache Camel JMS component documentation page at http://camel.apache.org/jms.html.

               

              Cheers,

              Ade.