3 Replies Latest reply on Aug 26, 2004 11:19 AM by adrian.brock

    delivery mode

    gschmidt

      Hi.

      i have got a problem solving the following szenario.

      1. I have two MQs with delivery mode "exactly once"
      2. I have multiple listeners requesting messages for processing from MQ A
      3. Listeners do long running tasks with these messages (eg. 5 secs)
      4. after processing a message it will be delivered to MQ B

      These thinks works perfectly well without transactions.

      BUT.

      I must go shure that each messages are processed correctly. so i added transactions to this scenario. then it is possible that multiple listener resolve a given message. --> delivery mode "exactly once" is violated.

      can anybody help?

      Thanks.

      Georg

        • 1. Re: delivery mode

          Moderated: Your question is unintelligble.

          • 2. Re: delivery mode
            gschmidt

            A single message is resolved multiple times out of the MQ A. So it is processed multiple times.

            Is it possible to do that action with transactions, but without the "feature" of resolving messages multiple times?

            • 3. Re: delivery mode

              Give an example, I still don't understand your question.

              If you are trying to achieve the following in a single transaction it is not possible:

              sender.send(message); // Send to a queue
              reciever.receive(); // Try to receive that message
              session.commit(); // The send is not done until here!