Questions tagged [msmq]

Microsoft Message Queuing (MSMQ) is a message queuing implementation developed by Microsoft and deployed as part of its Windows platform since 1996. MSMQ is included on most versions of Windows but it's not installed by default.

Microsoft Message Queuing (MSMQ) is a message queuing implementation developed by Microsoft and deployed as part of its Windows platform since 1996. MSMQ is included on most versions of Windows but it's not installed by default.

1964 questions
17
votes
4 answers

Setting permissions on a MSMQ queue in a script

Can anyone give me some pointers on how to set permissions on MSMQ queues in script, preferably PowerShell, but I'd use VBscript
SteveC
  • 15,808
  • 23
  • 102
  • 173
17
votes
8 answers

How to process MSMQ messages in parallel

I'm writing a windows service to consume MSMQ messages. The service will have periods of high activity (80k messages coming in very quickly) and long periods of inactivity (could be several days without a new message). Processing the messages is…
Gabe Moothart
  • 31,211
  • 14
  • 77
  • 99
16
votes
4 answers

Message does not reach MSMQ when made transactional

I have a private MSMQ created in my local machine. I am sending messages to the queue using following C# code. When I changed the queue to be transactional, the message is not reaching the MSMQ. However, there is no exception thrown in the Send…
LCJ
  • 22,196
  • 67
  • 260
  • 418
16
votes
5 answers

Java and MSMQ

I was curious if anyone had any suggestions on a Java library that provides access to MSMQ? I've downloaded the trial of the J-Integra Java-COM library and have built and run their MSMQ example app, but I was curious if there were any good (free…
Andy White
  • 86,444
  • 48
  • 176
  • 211
16
votes
0 answers

Accessing performance counters through a cluster

I am trying to find how to make performance monitoring available over a cluster, and I can't find seem to find anything while searching other than how to access performance counters for a cluster. The situation is this: Up until now, we've had MSMQ…
zimdanen
  • 5,508
  • 7
  • 44
  • 89
16
votes
1 answer

How-To Mock MSMQ MessageQueue

I want to Unit Test my application which use MSMQ but i found no way in order to Mock MessageQueue objects. var queuePath = @".\Private$\MyQueue"; MessageQueue queue = null; if (MessageQueue.Exists(queuePath)) { …
Yoann. B
  • 11,075
  • 19
  • 69
  • 111
15
votes
2 answers

c#. MSMQ .The max size of a single message

Using msmq I want to send a message (near 1 GB). I want to send array of bytes. But I can send only 4 MB. How can I get around this limitation ?
Zhenia
  • 3,939
  • 3
  • 15
  • 15
15
votes
7 answers

WCF net.msmq service auto activation

I have to WCF services which use the net.msmq protocol, hosted in IIS 7. My problem is that the services do not activate when a new message appears on the queue, you have to physically browse to the services first, before they will start picking up…
Brian Blignaut
14
votes
2 answers

Not creating queues automatically in NServiceBus

I'm running NServiceBus 3.0.0 rc2 but when I start the application (as local admin) without pre-creating the MSMQ's it errors with : The queue does not exist or you do not have sufficient permissions to perform the operation. This was not…
undefined
  • 33,537
  • 22
  • 129
  • 198
14
votes
2 answers

How to Create a C# Listener Service for MSMQ as a Windows Service

I'll start by saying I'm not a .NET developer, but have been thrown into a project where I need to use MSMQ so a classic ASP web application can send messages to a C# Windows Service that handles the processing. I have experience integrating other…
philfeyn
  • 141
  • 1
  • 1
  • 3
13
votes
2 answers

MSMQ COM API in C#

What is the best way to use MSMQManagement from C#? I need the ability to peek and purge a local outgoing queue when the remote machine is disconnected. Apparently some users can do this through the COM API, but in the COM References tab, I don't…
Dan1701
  • 447
  • 5
  • 14
13
votes
3 answers

MSMQ one (queue) to many (listeners) scenario

I have this scenario: One client sends a message into a msmq queue instance and there are 3 processes which listen on this queue. I want to be able to let every one of those instances pick a different message and process it. I know that is a common…
user604613
13
votes
3 answers

Unable to load DLL 'mqrt.dll'

I've developed a WCF Service which is hosted as a Windows Service and exposes a MSMQ endpoint. I have the client app on SERVER1, and the MSMQ and WCF Service on SERVER2. When the SERVER1/ClientApp attempts to push a message on to the SERVER2 MSMQ, I…
ETFairfax
  • 3,794
  • 8
  • 40
  • 58
13
votes
3 answers

Private or Public MSMQ

We are using Queue for few of are WCF services. We are using NetMSMQ binding for the WCF services which use Private MSMQ. The system works OK on our QA environment. I am not sure of any real difference between and private or public queue. The client…
Balaji
  • 2,109
  • 5
  • 27
  • 34
13
votes
5 answers

System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state

Receiving this error when trying to work with the queue: Unexpected error occured: The communication object, System.ServiceModel.ServiceHost, cannot be used for communication because it is in the Faulted state. at…
GrimSmiler
  • 561
  • 1
  • 4
  • 21