msmq

MSMQ - can a queue survive a queue process restart/server restart

Can an MSMQ queued messages survive a service/server restart? What I mean is that if a queue has messages and the server were to experience a hard restart, would the messages be still available in the queue after the restart? ...

MSMQ - Access statistics from .NET?

I've been trying to figure out if there is a way to get the following from a MSMQ queue: Current message count Average message life (on the queue) Timestamp from first and last message (So you can use average message life to calculate a rough estimate on wait times). The MessageQueue class in System.Messaging doesn't seem to expose a...

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 message queues with other languages, but like I mentioned, I don't have much experience wit...

Transaction not rolling back

I have a transation that doesn't seem to rollback and getting a strange error. I'm using a transaction that is connected to SQL Server 2008 on a different server and MSMQ on the same server as the code. Here is an example of the code: void MyMethod() { try { using (var outterTrans = new TransactionScope())...

MSMQ vs. SQL Server Service Broker

I have an application that consists of three parts: a front-end web shop for end-users and business partners an order-management system to handle those orders a technical database system to handle all the technical details of those products and services ordered Today, those systems (which are on separate servers and being developed b...

MSMQ + ASP.NET webservice

Hello, We have a webservice where some operations are processing. When we stopped IIS, and than run it (we stop Publishing World Wide Web), we have such a problem. The first request to the method which contains MQPurchaseOrderWS data = (MQPurchaseOrderWS)m.Body runs long. Sometimes our client has a timeout exception. This situation ...

MSMQ Access to Message Queuing system is denied when trying to receive message.

I can't figure out why I'm getting a 'Access to Message Queuing system is denied' error when trying to receive a message from a remote queue. (Msmq 5.0). Sending to the queue is no problem, receiving from it is. The security of the queue itself is configured to give full control to everyone and anonymous. Any idea why sending to this ...

MSMQ Trigger on Windows 2003 not firing

I'm having a strange issue with an MSMQ trigger. This is what I've done. On Windows Server 2003 I've installed MSMQ I then installed MSMQ triggers I created a private queue called "TestQueue" I created the rule as follows: Name: "TestRule" Condition: "Message label contains '-'" (All my message labels contain '-') Invoke standalone ex...

How to run IIS7 Application Pool under domain account?

What are the steps to be made to run an IIS7 Application Pool under a domain account? I know how to create a domain account and how to set the identity of the Application Pool. My question is rather what rights does this Domain Account need to have? (logon right to the server? read rights to the files of the web sites running under appl...

When to use MessageQueueTransaction for simple cases?

I'm new to MSMQ and trying to understand when to use MessageQueueTransaction class. For example, is there any value to create a simple transaction just for putting a message in the MSMQ queue like this? using (MessageQueueTransaction t = new MessageQueueTransaction()) { t.Begin(); Message m = new Message(myString, formatt...

.NET CF - MSMQ ActivateDevice() Crash

I have a .NET 3.5 Compact Framework application that uses MSMQ. We are running this application on an Intermec CN3, Windows Mobile 5.0 device. However, when our application first tries to active the MSMQ service with ActivateDevice (pinvoke), the application crashes and we get the error report message: A problem has occuurred with m...

How to setup a message queue as a communication channel between two WCF endpoints?

Dear ladies and sirs. I have two machines in different domains. The domains are not known to each other (no trust between them). I wish to use the net.msmq binding to communicate data from one endpoint to another. So, let A and S be two machines, where A must be able to send messages to S. Then, in the config file of A, there is this ...

temporary queues for msmq

In the JMS world there is this concept called temporary destinations which is very heplful for request/response scenarios. The sender makes request on some destination and creates a temporary destination (which exists only as long as the session it is created in is stil there)for receving the responses. Is there such a thing for msmq? ...

NServiceBus Failed raising Transport Message Received event

Scenario: I'm using NServiceBus with MSMQ Transport. I have messages from an app dropped into QUEUE-A. I have a NServiceBus Gateway grab messages from QUEUE-A and send them to another Gateway I the Destination Gateway receives the messages and places them into the respective queue. Source Gateway throws a Null Reference Exception and...

MSMQ Messages Are Stuck In The Outgoing Queue

Although my question looks similar to some already found on SO, those post did not help me, so here it is: Given: Two machines on the same segment (naturally in the same domain, actually on the same desk) Both machines are Windows 7 workstations Both machines have disabled firewall Both machines see each other (ping works) There is a ...

MSMQ - Reading outgoing queue messages in MMC

Is this possible? When I click outgoing queues, it says there are messages, but when I click the queue I can't see them. ...

Contract requires TwoWay (either request-reply or duplex), but Binding 'NetMsmqBinding' doesn't support it or isn't configured properly to support it.

I'm using WCF and netmsmqbinding. my environment is window 2003 server. the wcf servcie is hosting as a window service. thank you in advance for your help. ...

options for queuing and processing transactions in Microsoft Windows?

I'm working in the microsoft world and needing to create a transaction processing webservice. The webservice will receive a transaction and submit it to a queue. A second service will pull the transactions out of the queue and process them. I have been considering two different approaches: database table (roll my own queue) and micr...

MSMQ Messages not arriving

Hi I have a Web App and a service sitting on the same machine and communicating via message queues. The problem I'm experiencing is that about half of the time the messages I send from the service are not arriving to the reading code in the web app. Some of them will arrive and some will not. The messages are sent with at least 1 second...