msmq

MSMQ messages received but not delivered Windows 2008 R2

旧街凉风 提交于 2020-01-20 06:45:45
问题 I have a transactional queue called myPrivateTransactionalQueue hosted on a Win2008R2 server called myReceivingServer which should receive messages from another server called mySendingServer. When the mySendingServer sends a message, an entry appears in the MSMQ log on mySendingServer which says: Message with ID {f748cc48-8017-4a64-9ff6-61c68564445f}\56008 was sent to queue DIRECT=OS:<myReceivingServerName >\private$\<myPrivateTransactionalQueue> However, myReceivingServer, in the MSMQ log

Including MSMQ as a prerequisite for my application

假装没事ソ 提交于 2020-01-19 06:42:05
问题 I'm working on an application that uses MSMQ for interprocess communication, and I need the setup project to be able to install the service if it isn't already. I've checked around for information on making it a prerequisite, but so far I've been unsuccessful at finding this. Any ideas? 回答1: Discovered the answer on my own...the windows component installer is not crippled by the typical inability to install more than one MSI at any given time, so I'm able to use a custom installer action to

MSMQ receive and delete

怎甘沉沦 提交于 2020-01-14 10:29:46
问题 Is there is any option to remove a message from MSMQ after it has been read? Like, a receive + delete can run as atomic operation? 回答1: It sounds like you want to peek at the next message and then receive it after you're finished processing. Message message = Queue.Peek(); Queue.ReceiveById(message.Id); 回答2: Are you referring to the difference between Receive and Peek in MSMQ? IMO the simplest mechanism to ensure atomic operations is to place the queue operations within a TransactionScope.

CPU underutilized. Due to blocking I/O?

江枫思渺然 提交于 2020-01-13 07:54:23
问题 I am trying to find where lies the bottleneck of a C# server application which underutilize CPU. I think this may be due to poor disk I/O performance and has nothing to do with the application itself but I am having trouble making a fact out of this supposition. The application reads messages from a local MSMQ queue, does some processing on each messages and after processing the messages, sends out response messages to another local MSMQ queue. I am using an async loop to read messages from

Why Powershell's New-WebBinding commandlet creates incorrect HostHeader?

时光总嘲笑我的痴心妄想 提交于 2020-01-11 08:17:08
问题 I am trying to add an MSMQ binding for my IIS Web Site, correct binding should look like this: So I am executing following line in PowerShell: New-WebBinding -Name "My Site" -Protocol net.msmq -HostHeader "localhost" and it creates the following binding: prefixing it with *:80: , so my MSMQ messages don't get picked up by WCF service. Maybe I am doing it wrong? How to create a binding with Binding Information set to just "localhost" using this PowerShell comandlet? Commandlet codumentaiton

Using MSMQ over HTTP. How to address the queue?

孤街醉人 提交于 2020-01-10 19:38:59
问题 I'm currently trying to use MSMQ with C# and .NET in order to achieve IPC. I am trying to understand how it works, and I'm quite confused about the differences between Path name and Format name when accessing MSMQ queues. I've found some similar issues in the following posts: MSMQ calls over HTTP not reaching destination queue How to setup MSMQ server so that it can be accessed over the Internet How to use MSMQ over http through the respective WCF binding? However, they're all using MSMQ and

Is it possible to have a generic WCF service for handling multiple MSMQ endpoints?

让人想犯罪 __ 提交于 2020-01-07 03:06:35
问题 Our team is building a service for processing messages from multiple remote MSMQ queues using WCF (via msmqIntegrationBinding). We would like to have the ability to throttle different groups of queues (via serviceThrottling) based on the amount of resources they typically consume. My idea is to have a single service type processing messages from multiple queues and determining what to do with them based on the type of message. Unfortunately, I can't figure out a generic way to use MsmqMessage

WCF MSMQ consumer thread count

末鹿安然 提交于 2020-01-05 09:33:43
问题 What's the best way to configure the maximum number of threads that can pull messages from an MSMQ queue, using a netMsmqBinding in WCF? For example, say I have an MSMQ service for which I only want to have 2 (or 10, or whatever number of) worker threads pulling messages off at a time. 回答1: You need Service Throttling <behaviors> <serviceBehaviors> <behavior name="DefaultThrottlingBehavior"> <serviceThrottling maxConcurrentCalls="2" /> </behavior> </serviceBehaviors> </behaviors> 来源: https:/

Wix: Install MSMQ component

大憨熊 提交于 2020-01-04 14:05:24
问题 I have a .NET project which has 2 components which communicate over MSMQ. I'm building my installer using Wix because Microsoft has inexplicably ceased support for installers in Visual Studio 2012. I'm quite happy with the process of creating an instance of MSMQ in a Wix Installer, and I'm quite happy with the process of detecting whether MSMQ is installed on the computer (by trying to load Mqrt.dll). Does anyone know how to use Wix to install the MSMQ Windows System component itself? Is

How to purge MSMQ system queue journal programmatically on a workgroup installation?

半世苍凉 提交于 2020-01-04 04:31:26
问题 I try this: MessageQueue mq = new MessageQueue(".\Journal$"); mq.Purge(); It work good on XP. But, on windows 2003 server, I always have this error : "A workgroup installation computer does not support the operation." 回答1: Try using format name like so: MessageQueue mq = new MessageQueue("DIRECT=OS:computername\SYSTEM$;JOURNAL"); mq.Purge(); I think that system queue can't be access by path. You have to use format name. look at Yoel Arnon's comment at the bottom of the page. 回答2: The correct