Tuesday, January 4, 2005

Microsoft Messaging Queue

I thought this was going to be straight forward. There are example chapters in my Enterprise Application book about creating applications that use Microsoft Messaging Queues or MSMQ. There are also chapters on creating Windows services. I figured I would marry the two and have an cool service that would process messages from the MSMQ. Unfortunately, it is not all that simple. Because I am spinning up a new thread to handle the background processing, there is a race condition that occurs when there is no waiting message in the MSMQ. I found a more detailed explanation here. I guess it's back to figuring out a better way to handle it tomorrow.

No comments:

Post a Comment