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...
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...
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?
...
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...
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...
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 ...
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...
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...
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 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...
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...
I'm creating a Windows Service in C#.
What is the best way to listen for messages?? How do I code this properly??
...
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...
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...
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...
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
...
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...
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.
...
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...
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...