msmq

Can I peek into empty MSMQ without getting exception?

As far as I can see from the documentation, the way you are supposed to check if there are messages in a message queue is to use the Peek method. You then rely on it failing with a MessageQueueException to tell you that the queue was empty. public bool IsQueueEmpty() { bool isQueueEmpty = false; MessageQueue myQu...

How do I give a Windows Service access to a MSMQ queue, with a setup project?

I have a windows service that needs to access a message queue (MSMQ). The queue itself is created using a MessageQueueInstaller component that automatically generates the install code. I then deploy this using a standard setup project. The service is installed in the same way, using the same setup project. When I start the service it...

How do you do MessageCount on MSMQ Queue in dot Net?

Using COM you can get the MessageCount property of a queue. I can achieve the same thing with the MSMQ.Interop, but I was wondering if there is any way to do this with a pure dotNet approach? ...

How to receive message from a private workgroup queue

Hi I have a private queue on a remote machine that everyone and the anonymous login have full access to. The following code produces and error when trying to receive: var qpath = @"FormatName:DIRECT=TCP:xx.xx.xx.xx\PRIVATE$\QueueName"; var q = new MessageQueue(qpath); var msg = new Message(); msg.AttachSenderId = false; msg...

Correct way to host a *stable* WCF MSMQ windows service

I have an application that uses MSMQ for asynchronous processing of certain things. I use WCF to put messages on to the queue and have a WCF MSMQ listener (a windows service) to receive messages and deal with them. My problem is keeping this stable. What is the correct way to deal with (for example) the queue server (which is a separat...

MSMQ not invoking COM

I made a COM object with c# and let VS register it for me. I can see it in registry and if I make a test app I can add a reference to it and it works as expected with all the methods available and functional. Now If I try and use it in a MSMQ rule nothing happens. It will not be invoked. Is this because it is a .NET assembly? Is it ...

MSMQ Design Question

Hi, There's a requirement to persist messages that are generated between a WCF client and a WSE 2.0 web service. Since the web service is hosted by a third-party, could i implement a solution where the WCF client persists messages to msmq and have the windows service poll the queue intermittently for requests to be sent on the WSE 2.0 w...

Alternatives to NServiceBus that doesn't use MSMQ

I think the title sums it all .... We have a .NET 2.0 system trying to implement a distributed pub/ sub model. I came across NServiceBus, RhinoBus and MassTransit. Unfortunately, these are MSMQ based. I am tasked to figure out pub/ sub alternatives that uses a different messaging alternatives ... the only reason for seeking MSMQ altern...

How can I get an msi (VS Setup Project) to install a Windows component?

I have a Visual Studio Setup project that creates a Message Queue (MSMQ). It fails on computers where the Message Queue component is not installed. Is it possible to get the installer to enable/add this Windows Component? ...

Windows Process Activation Service (WAS) installed but NetMsmqActivator is missing

Windows Process Activation Service is installed under features on my Windows 2008 server running IIS7. Should i be able to see the NetMsmqActivator (Net.Msmq Listener Adapter) in the services list? I don't see it there. My messages are sitting in the queue unprocessed so i went to see if the NetMsmqActivator is running as its supposed...

MSMQ scalability

We're looking at setting up a MSMQ system with ~8000 clients and one queue per client. On average the system needs to handle ~2000 messages daily from each client, where the message size will range from 1K to MSMQ Max size (4MB). Is this at all possible with MSMQ? I know I'm not providing a lot of details here, but I just want feedbac...

Receiving MSMQ messages with Windows Service

I'm creating a Windows Service in C#. What is the best way to listen for messages?? How do I code this properly?? ...

Calling WCF with netMsmqBinding inside TransactionScope stopping transaction.

I have a WCF logging service that runs operates over MSMQ. Items are logged to a Sql Server 2005 database. Every functions correctly if used outside a TransactionScope. When used inside a TransactionScope instance the call always causes the transaction to be aborted. Message = "The transaction has aborted". What do I need to do to g...

MSMQ, WCF, and Flaky Servers

I have two applications, let us call them A and B. Currently A uses WCF to send messages to B. A doesn't need a response and B never sends messages back to A. Unfortunately, there is a flaky network connection between the servers A and B are running on. This results in A getting timeout errors from time to time. I would like to use WCF...

Is the any free library that implements message queuing similar to MSMQ (Microsoft Message Queuing)?

I am interested in using a free library that has features similar to MSMQ to send/receive messages among 3 app domains in a win form application. I only need the private queue functionality (No public queues or AD support) Please provide links and some advantages/disadvantages . I am happy to open sub questions if you think you need more...

How MSMQ will work?

Hi anybody know how MSMQ work with c#? I got a small problem Actually i need to enter 10 urls in a queue and want to execute at 10 different time spans automatically. Will it possible by using MSMQ with C# or is there any other technique is there? Please suggest me how to do it Thanks in advance ...

Does anyone have any architectural information for MSMQ?

I'm trying to decide if MSMQ is the right tool for communication between our application and a third party web service we are currently communicating with directly. We're looking to uncouple this such that if the service goes down, life could still go on as normal. I can't find anything outside the usual MS fluff about it being the g...

MSMQ competing consumer

Can someone tell me whether MSMQ (using transactions) supports competing consumers? Basically, I have multiple threads dequeueing messages off of a single queue. Just wanted to make sure this will work since MSMQ sometimes behaves differently than I expect. ...

How to clean sys.conversation_endpoints

I have a table, a trigger on the table implemented using service broker. More than Half million records are inserted daily into the table. The asynchronous SP is used to check sveral condition by using inserted data and update other tables. It was running fine for last 1 month and the SP was get executed withing 2-3 seconds of insertion...

MSMQ cannot delete or purge a queue

I'm very new to MSMQ. We have a critical system using MSMQ and it is not able to start due to insufficient resources. It appears that MSMQ is at capacity. I am trying to purge messages (or even delete unneccessary queues), but I receive the following error when purging: Cannot delete all messages from queue. Error: Access to Message Qu...