msmq

NServiceBus not creating queues automatically (MSMQ)

[亡魂溺海] 提交于 2019-12-12 12:25:16
问题 I'm doing the examples from the NServiceBus website (http://docs.particular.net/samples/step-by-step/) and when I run in Visual Studio everything works and the queues are created automatically (even if I delete them and re-run the solution than they get created automatically). The dev machine runs Windows 8. I have an emulated Windows 2008 RC2 - when I take my solution bin folder to the server machine and try to run NServiceBus.Host.exe it eventually crashes and the reason is: "The queue does

Enumerate all outgoing Queues in MSMQ, C#

情到浓时终转凉″ 提交于 2019-12-12 08:26:50
问题 Using C# and .NET 3.5, how can I get a listing of all outgoing queues in MSMQ? I found this article about it but as you can see below I do not have the COM entry for Microsoft Message Queue 3.0 Object Library ... So how can I get the current outgoing queue listing? I figured there must be a way since I can see them in Computer Management ... What can I do? 回答1: Two good places to start I think would be these: http://msdn.microsoft.com/en-us/library/ms703173%28v=vs.85%29.aspx http://msdn

Interprocess pubsub without network dependency

痴心易碎 提交于 2019-12-12 08:17:05
问题 Suppose I have no network card installed on my computer, and I would like to have functionality similar to the following: Process 1 will publish messages to some URI, say "Uri1" var publisher = new Publisher("Uri1"); publisher.publish(new Message("Somedata"); Process 2 will both listen for messages on "Uri1" and publish messages to "Uri2" var subscriber = new Subscriber("Uri1") subscriber.MessageReceived += data => Console.Writeline(data.ToString()); var publisher = new Publisher("Uri2")

Connecting To A Private Remote MSMQ Queue

你。 提交于 2019-12-12 08:07:06
问题 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. However this does work using a local queue. I'm using Spring.Net's Messaging. Here's my config <objects xmlns="http://www.springframework.net"> <object id="myQueue"

Processing messages fast from MSMQ in parallel from Windows Services

扶醉桌前 提交于 2019-12-12 04:57:18
问题 Our service run continuously 24/7 in a company, which retreives messages from MSMQ and after processing write result in DB. What we observe that our criteria of working with MSMQ is so old, and doesn't process many messages at a time, we need to process at least 200 or 250 transaction per second in a process, but what we uses only process 10 to 14 transaction in a second. implementation Of our Code is while (true)//(count < 2) { response = ""; try { rcvMsg = MQ.Receive(new TimeSpan(0, 0,

Persistant subscription

依然范特西╮ 提交于 2019-12-12 02:29:50
问题 I'm thinking to change our existing periodical synchronizations with event based and was trying to find some mechanism, that already exists, but failed so far, so may some of you will help. I'll try to explain how I think it could work and if someone knows that this is somewhere already done, please give me pointers. So system would look like this: Now - the interesting part: - I need that subscribing client would receive events even if those events were generated when he was offline, - but

msmq multiple message types in a single queue

亡梦爱人 提交于 2019-12-12 02:18:45
问题 I'm planning on having a single queue receive ~100 different message types. If I had only had 2 different types I'd do something like this MessageQueue queue = new MessageQueue(_queue); queue.Formatter = new XmlMessageFormatter(new Type[] { typeof(CreateReportComand), typeof(CreateReportComand2)}); Is it craziness to pass XmlMessageFormatter an array of ~100 Types. And if not what is the best way to examine the received message to decide how to handle it? 回答1: You can use the WCF

How to extract a propertybag or complex object send from VB6 through MSMQ in C#

不想你离开。 提交于 2019-12-12 02:04:54
问题 I'm new to VB6 and also MSMQ. I went through a lot of tutorials online but seems like there is no solution for my question. I managed to sending from C# to C# or VB6 to VB6 but not from VB6 to C# or vice versa. So I wonder is it a way to do that or there is no way to do this kind of communication. For example: I want to send this to MSMQ Dim PropBag As PropertyBag Set PropBag = New PropertyBag PropBag.WriteProperty "Customer", "Bob" PropBag.WriteProperty "Product", "MoeHairSuit" PropBag

MSMQ - Get specific queue by path

依然范特西╮ 提交于 2019-12-11 19:04:08
问题 I find it strange that in MSMQ there's a method called MessageQueue.Exists and MessageQueue.Create . However, there's no method for retrieving a queue given its path, even though the two mentioned methods take a path as an argument. How can I retrieve a queue efficiently by its path? I could do: MessageQueue.GetPrivateQueuesByMachine(".").First(m => m.Path == "something"); But I wouldn't call that pure nor efficient. My machine will handle large quantities of queue messages flowing around,

How can I use MSMQ in Azure Service Fabric

吃可爱长大的小学妹 提交于 2019-12-11 18:25:10
问题 I have implemented a Proof of Concept in Azure Service fabric that uses Azure Service Bus as a message queue. I'm using nServiceBus within the application to send and respond to messages which makes it very easy to change from one queuing technology to another. I'd like to know if it's possible to use MSMQ instead of Service Bus in Azure Service Fabric as the nodes that are created are just windows 2016 servers and I'm not sure I need something like Service Bus. It's a question I want to