msmq

Observer pattern with WCF MSMQ

Is it possible to have multiple listeners to messages carried by MSMQ? WCF appears to frame everything in terms of services, making communication a point-to-point affair. I want to use a message queue to buffer incoming traffic for another process that records the logs in a database. There can be be any number of other processes inter...

Is it possible to execute SQL commands and send MSMQ messages in a TransactionScope?

I'm investigating using MSMQ for my team's new project but I need to know if I can send MSMQ messages and execute SQL commands within a System.Transactions.TransactionScope and have them commit or rollback together. I can't find a reliable source online that says "yes" with code examples. I need to send some messages to a single queue ...

Why is the storage for MSMQ full when the queues themselves are empty?

A QA server of mine which has not given me any flack for a while started giving my applications errors because they could not write to a queue. MSMQ specifically threw a message saying "Insufficient resources to perform operation". A check of the queues themselves indicate that they are empty, with zero messages each. A check of the li...

BizTalk MSMQ userid and password in a bindings file

I'm setting up a solution to deploy, driven by a batch file so it's reproducible - I've got a binding file that works but I've now added on my MSMQ adapters - works on my local machine, but I've found I have to add a userid and password to get it to work on the actual server - it's in the domain, my virtual dev machine is just workgr...

How do I read an MSMQ message from a VB6 app using .NET code?

I am writing a simple xml string to an MSMQ from a VB6 app, but when I attempt to read the message off the queue in C# using the XmlMessageFormatter I get the following error: "Name cannot begin with the '.' character" How do I successfully read these messages using .Net code? ...

Un-enlisting a BizTalk MSMQ send port in batch file

I've got a solution which I setup / cleanup using batch files ... - there are a pair of MSMQ ports, send and receive, with another application on the end of the queues I'm finding I can't properly stop the orchestration in the batch file ... the error is the send port is unenlisted - I'm using the StopOrch.vbs script from the SDK sampl...

Reading the MSMQ transcational dead letter queue

I'm trying to read the transactional deal letter queue in MSMQ using C#.NET and am getting "A workgroup installation computer does not support the operation" For 10 Stack Overflow points, what am I doing wrong? ...

Resend to MSMQ after exception

I'm trying to put a Message back into an MSMQ when an exception is thrown. The following code appears to work but the Message is not put back in the queue? Message msg = null; try { MessageQueue MQueue = new MessageQueue(txtMsgQPath.Text); msg = MQueue.ReceiveById(txtQItemToRead.Text); lblMsgRead.Text = msg.Body.ToString(); ...

Is there any way to access MSMQ public queue if not on domain?

The solution is crying out for the MSMQ solution but unfortunately the posting service is not on the domain. Is there anyway to post to the public queue that is on the domain from the machine in the DMZ? I could use a webservice to post but this is a extra component to maintain. The database table is the alternative solution but again i...

WCF and MSMQ failure handling

Can someone explain to me the difference between these 3 approaches to processing messages that fail delivery? Poison Queue service Dead-Letter Queue service Using a response service to handle failures I have "Programming WCF", but I don't really understand when you would use one of these over another, or when it would make sense to ...

Larger WCF messages via MSMQ not processed

I have a Windows Console App hosting a WCF service that reads from an MSMQ. When the message size gets to around 7k to 8k the service reads it (i.e. it disappears from the Q) but the appropriate function isn't called. No exceptions thrown. Anybody have any clues about what's happening or where to look to resolve this? ...

msmq with multiple endpoints and concurrent processing

I have built a WCF load balancer/router to conditionally route any one way service to multiple endpoints all using MSMQ bindings. I have also created a host that uses all the endpoints from the router to accept the service calls. All the endpoint specifies the same contract. I need each queue (endpoint) to be processed concurrently ...

MSMQ throws away messages if the destination queue does not exist?

I've encountered a weird situation: Messages are sent from ServerA to ServerB. It goes into ServerA outgoing queue and then sent to ServerB's queue. ServerB crashed. We had to reformat. When we brought it up, we forgot to install the MSMQ Service. Messages begin pilling up in ServerA's outgoing queue until the program that sends messa...

How do I prevent a WCF service from enter a faulted state?

I have a WCF Service that should not enter the faulted state. If there's an exception, it should be logged and the service should continue uninterrupted. The service has a one-way operation contract and is reading messages from an MSMQ. My problems are twofold: The service appears to be swallowing an exception/fault so I am unable to ...

ASP.NET - best queue system for a new application

My organization is getting ready to implement a new system, which is a asp.net application. The application will have a large queue of offline work that is initiated by the website. This queue will hold different types of activity, ideally in XML messages. Think of things like email notifications, scheduled tasks, etc. In the past, t...

MSMQ - Workgroup mode - Windows Server 2003 - private queue - WCF service never notified when post new message

Hi, I'm using WCF (C#) to send/receive messages from private msmq queue under Windows Server 2003 in WorkGroup mode. Client WCF/Service WCF and MSMQ are on the same computer. There's one client that send message to the private queue, that's work perfect. There's one service that receive message from the same private queue but the servic...

Connecting To A Private Remote MSMQ Queue

I'm trying to connect to a remote private MSMQ queue using the path: "FormatName:DIRECT=OS:remoteMachineName\Private$\MyQueue" and I'm getting the following error: "The specified format name does not support the requested operation. For example, a direct queue format name cannot be deleted." I'm obviously doing something wrong. Ho...

MSMQ v Database Table

An existing process changes the status field of a booking record in a table, in response to user input. I have another process to write, that will run asynchronously for records with a particular status. It will read the table record, perform some operations (including calls to third party web services), and update the record's status f...

WCF security

I have a WCF service that is hosted in a windows application. The service uses netMsmqBinding. The client and the host are in different domains. My question is how do I configure the security settings? The data that is transferred is sensitive so I would like to secure the communication between the client and the host of the service. T...

Impersonation when running a remote triggered job

My (.NET) app allows users to tweak database values. They will then need to generate reports based on their edits, either Crystal or Reporting Services, but that's not important - what is important is that the generation won't definitely be able occur on their local box, e.g. they might not have Crystal Reports (or whatever) installed on...