latinindustry

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Peek - process - receive


Senior Member

Status: Offline
Posts: 457
Date:
Peek - process - receive
Permalink   
 


Hello,

I envisage peeking a queue to see the "next" message. I the attempt to process that message, if I fail I want to leave it in the queue, if it works (the processing) then I want to receive (remove) it and move one.

But there's no overload of Receive that takes either an existing message (obtained from a prior peek) or that takes a message ID.

Is this the wrong approach? is it better to introduce another queue "failed_to_process" in which messages are then simply received and if processed fine, if not sent to this other queue?

Any info appreciated, I'm just trying to establish some basic patterns etc for wholly internal organizational use and haven't used MSMQ much at all.

Thank You

 

 

I didn't find the right solution from the Internet.

References  https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/db46b23f-b4d4-4ad7-b429-ffd33fe27ba9/peek-process-receive?forum=msmq

 

Web Marketing Examples

 



__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard