Indeed, that is the answer JM! I was thinking to use the Journal Queue as a repository for all sent messages. However, the message is copied to the journal only when it is consumed from the queue. In other words, undelivered messages will never get to go to the Journal Queue, so even if a negative acknowledgment is received, I won't have the message unless I get it from the Dead Letter Queue or I keep it in the memory. Obviously, I could use the machine's Journal Queue and store the messages there. I am pushing for the usage of Messaging Queues because you have all these methods ("PeekById", "PeekByCorrelationId", "ReceiveById", "ReceiveByCorrelationId") that would make search and access easier.
Thanks for your heads-up! Regards, Eddie -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of J. Merrill Sent: Thursday, March 23, 2006 5:49 PM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] Message Queues and acknowledgment If you created a Message object, isn't the Id property available after Send returns? (If you pass anything other than a Message as the object to be sent, you won't be able to get the Id.) I have not tried this, but nothing else makes much sense. At 02:57 PM 3/23/2006, Eddie Lascu wrote >Hello everybody, > >I am trying to grasp the acknowledgment mechanism of Messaging namespace. I >saw a bunch of examples where you can set what type of acknowledgment you >want (for example positive receive and arrival where you are notified when >your message reaches the destination queue and when is consumed from there). >I know how you can set the "AdministrationQueue" of your message to specify >where you want to receive those notifications. What I don't understand is >how do you make correlation between your original message and the >acknowledgement notifications you receive. >I know that the Message.Id property get set after the message is sent, so I >don't have access to that value. All the acknowledgement notifications will >have that Id value in their CorrelationId property, but how can I pair the >messages if I don't know the original Id? > >Imagine this scenario: I need to send multiple update messages to a queue, >but I also need to know when they are consumed. Based on the acknowledgment >notification messages I receive, how can I tell which of my original message >was received and which must be resent? > >Any suggestion will be appreciated. >TIA, >Eddie J. Merrill / Analytical Software Corp =================================== This list is hosted by DevelopMentor. http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com