MSMQ and the Windows Firewall

I was called on to assist recently in diagnosing why an MSMQ client was unable to send messages to a queue on a server. One of the things the owner of the machines did was take a network trace on the client of the connection attempt, and what I saw there sent me down the wrong…

0

JMS and MSMQ interoperability

I have come across this question of whether JMS and MSMQ are interoperabe a number of times and so I decided to address it. Microsoft does not have a JMS provider for MSMQ so basically you will need to use a third party product or implement your own JMS provider. I came across an interesting article called Enterprise Messaging…

1

MSMQ and WCF: Getting Started

Windows Communication Foundation (WCF) provides a powerful programming model to develop service-oriented applications. MSMQ integrates very well with WCF so queued applications can be developed using WCF. WCF provides two bindings that support MSMQ – NetMsmqBinding and MsmqIntegrationBinding. NetMsmqBinding provides asynchronous communication between WCF endpoints. The MsmqIntegrationBinding enables a WCF endpoint to communicate with an…

1

MSMQ and the Active Directory Recycle Bin

Windows Server 2008 R2 introduces a new feature in Active Directory, the Active Directory Recycle Bin. When MSMQ is installed on a domain-joined machine with the MSMQ directory integration feature installed, it makes use of Active Directory objects, particularly MSMQ configuration objects (objects named “msmq” which are children of computer objects) and public queue objects…

3

How to count messages in a MessageQueue

There are a few different ways of getting a count of the number of messages in the MessageQueue. Here’s a simple one.        public static int GetMessageCount(MessageQueue q)        {            int messageCount = 0;              using (MessageEnumerator messageEnumerator = q.GetMessageEnumerator2())            {                while (messageEnumerator.MoveNext())                {                    messageCount++;                }            }             …

0