msmq

How to enable negative source journaling while sending a message to MSMQ?

十年热恋 提交于 2019-12-08 17:19:21
问题 I'm trying to send a message through System.Messaging.MessageQueue (.NET) and the message keeps on disappearing. I've seen people recommending enabling negative source journaling, but can't seem to find out how this is done. Anyone? 回答1: Message m = new Message(); m.UseDeadLetterQueue = true; Simple as. 来源: https://stackoverflow.com/questions/12937306/how-to-enable-negative-source-journaling-while-sending-a-message-to-msmq

Awful MSMQ Performance Using ReceiveById

安稳与你 提交于 2019-12-08 17:05:49
问题 Just 20 message per second! That is all I got! Here is the code that peeks 50 message from queue and receives them in parallel using ReceiveById. Total number of messages in queue is 500. I have tested other numbers too. But the top limit is 20 message per second! Am I somewhere totally out of the way? Edit 1: 1 - I need the queue to be recoverable. BUT the interesting part is even if I set the recoverable option to false; still the top limit is 20 message/sec. 2 - I am forced to use MSMQ

Unable to load DLL 'mqrt.dll'

家住魔仙堡 提交于 2019-12-08 15:20:51
问题 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 get the following errror: System.TypeInitializationException: The type initializer for 'System.ServiceModel.Channels.Msmq' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'mqrt.dll': The specified module could not be found

Receiving the Same MSMQ Message Twice?

删除回忆录丶 提交于 2019-12-08 13:37:31
问题 I have an MSMQ-based system with three layers that communicate with each other. For the sake of simplicity, I'll refer to them as Layer 1, 2, and 3. They sit like this: Layer 1 <-> Layer 2 <-> Layer 3 So Layer 1 talks only to Layer 2, Layer 3 talks only to Layer 2, and Layer 2 talks to both others. I have four queues for this, Layer1_in Layer1_out Layer3_out Layer3_in And the layers communicate over this infrastructure: Layer 1 -> Layer1_out -> Layer 2 Layer 1 <- Layer1_in <- Layer 2 Layer 3

MSMQ BeginPeek/PeekCompleted memory leak

大兔子大兔子 提交于 2019-12-08 09:50:22
问题 Using Microsoft MessageQueue there seem to be a memory leak related to the PeekCompleted event. I found a related question on experts exchange from 2005, but with no proper answer/solution: http://www.experts-exchange.com/Programming/Misc/Q_21387840.html Using ANTS Memory Profiler I can see that I get additional pinned instances of Byte[], Int32[], System.Messaging.Interop.MQPROPVARIANTS[], and System.Threading.OverlappedData each time PeekCompleted is triggered. Reference chain: Byte[] <

Passing an unmanaged pointer between two AppDomains (By indirect call)

只愿长相守 提交于 2019-12-08 05:59:28
问题 .NET 4.5, 64bit Win8 I have two MSMQ running under WCF and hosted under Windows Activation Service. Execute MSMQ: Responsible for calling an unmanaged function and obtaining a pointer IntPtr to 4GB array in addition to other limited size variables. This array is not that important and shouldn't be blocking the queue until it is passed to the DB and having this queue free is a priority. Passing the pointer to the Save MSMQ (Hypothesis). Save MSMQ: Should save the array to the DB across the

How to handle message order in nservicebus?

左心房为你撑大大i 提交于 2019-12-08 02:53:54
问题 I'm trying to find a way to process messages in the order they were sent from the sender since NServiceBus does not guarantee that messages will be processed in a particular order. The sender is an order system which publishes createOrder and reviseOrder commands. The sender allows the user to submit multiple revisions to the same order so there can be revision 4 and revision 3 in the queue at the same time. Each revision has a revision number and reason code associated with it which drives

MSMQ BodyType Integer Allocation

牧云@^-^@ 提交于 2019-12-07 17:56:53
问题 I couldn't find anything about the BodyType-Property (beside the MSDN), especially nothing about the meaning of each integer. So I created messages with BodyTypes = 0...1000 and wrote down the result into an Excel-sheet. I hope this is helpful for someone. 回答1: Maybe there are even more BodyTypes and someone could add them 回答2: Even though the question and answer are two years old, it sometimes helps to dig through the C++ documentation when dealing with obscure MS API's. This is no exception

MSMQ as buffer for SQL Server Inserts

China☆狼群 提交于 2019-12-07 13:41:43
问题 I'm learning about MSMQ and am successfully using it to queue email and text messages from a consumer-facing ASP.NET MVC website, to be handled by a separate client application. In the event of a missing SQL Server database, perhaps while swapping drives or a broken database deploy, would it make sense to queue non time-critical inserts in a local MSMQ queue to improve up-time? Theoretically, I can then pause/resume queue processing (persistence) while making database changes. Has anyone