0

I have a remote machine that has a private queue and the server sends these messages to the remote queue. This is working fine. The issue is when the remote machine is not connected to network or turned off, the messages are saved in outgoing queue of the server and delivered later on when remote machine comes online. Now my requirement is that if the message is not delivered the server should know. And in the current case there is no exception is thrown as its saved in outgoing queue.

Now I have three things in mind.

  1. The outgoing queue should not save the message.
  2. Some acknowledgement should be returned from remote machine.
  3. I should post message directly by queue url as its hosted under IIS.

I would like to go with solution 3 but not finding any resouces over the topic.

Kiquenet
  • 14,494
  • 35
  • 148
  • 243
Apurva Saxena
  • 448
  • 1
  • 5
  • 13
  • Any message that is not delivered will always stay back in the outgoing queue. This is the default mechanism how mq should work. If you want to notify the server - may be you can check the message id or some unique id, and check its presence in the outgoing queue... – sajoshi Apr 07 '11 at 08:29
  • can u please provide some light on how to watch outgoing queue. – Apurva Saxena Apr 07 '11 at 09:23

1 Answers1

0

Look at setting a receive timeout on your message and using dead letter queues. When the remote server doesn't read the message in the timeout specified the message will be moved to the dead letter queue. You can monitor the dead letter queue to know when message were not received by the remote server.

MLF
  • 626
  • 4
  • 15