msmq

What could prevent NServiceBus from moving messages to the error queue if there are exceptions when processing?

旧时模样 提交于 2019-12-11 14:58:34
问题 I have an application using NServiceBus to process messages, and while debugging I'm finding that exceptions may be thrown, and the message is lost. I've checked both the main and error queues, and the message was only attempted once. Are there any common pitfalls that could cause this to happen? 回答1: This is a known issue on the trunk, make sure to use the latest 2.0 build 来源: https://stackoverflow.com/questions/3297608/what-could-prevent-nservicebus-from-moving-messages-to-the-error-queue

MSMQ: Moving client from WIndows XP to Windows 7, issue in ping

本小妞迷上赌 提交于 2019-12-11 13:54:09
问题 We have an issue moving a .NET client app from Windows XP to Windows 7, connected to a WIndows 2003 server. The client loose connection to the server, and this seems to be something related to changes in underlying ping system. It seems the server side MSMQ (3.X) which is on Windows 2003 is expecting a ping that is not anymore provided by the Windows 7 client (MSMQ 4.X) Any help is welcome. 回答1: Try setting HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Parameters\Security\EnablePingService to 1.

MSMQ storage in database

喜夏-厌秋 提交于 2019-12-11 13:22:45
问题 MSMQ stores messages on file system. Is there no way to configure MSMQ to store messages in database? I looked for options but couldn't find any? 回答1: There is no way. By the way, why would you like to do that? 回答2: MSMQ isn't a database; it's a transport protocol. It's purpose is to deliver data from A to B so that you can then process it. If you're thinking of how to long-term store messages then you are looking at the wrong product. Cheers John Breakwell 来源: https://stackoverflow.com

How to create a new MSMQ message in IronPython with label, reply queue and other properties

可紊 提交于 2019-12-11 12:42:51
问题 I'm following this example here to use MS Message Queues with IronPython. The example works to create a message text string without any properties. import clr clr.AddReference('System.Messaging') from System.Messaging import MessageQueue ourQueue = '.\\private$\\myqueue' queue = MessageQueue(ourQueue) queue.Send('Hello from IronPython') I am trying to create an empty message and then add properties (like label, a reply queue and a binary message body) and then send that complete message. How

How to determine progress of pending operations in queue?

坚强是说给别人听的谎言 提交于 2019-12-11 11:37:56
问题 I would like to use MSMQ queue to handle a lot of operations on XML data files. If I properly understand that technology, tasks will be passed to queue where they will get by handler. Also if there are a lot of such tasks, handler will catch tasks one by one. Therefore there are some pending tasks that just laying in queue and waits for handler. So also I should show a progress of handling of uploaded XML files on website in percents. The question is how can I demonstrate such progress of

MSMQ ReceiveCompleted not firing?

♀尐吖头ヾ 提交于 2019-12-11 10:49:54
问题 I have a simple console app that I'm using MSMQ to store messages before writing to SQL Server. I'm an MQ newbie so please forgive me if there's a stupid error. Basically, there is no error thrown and the code just runs straight through without going into the handler... Any help / guidance hugely appreciated... code as follows, thanks:- public void MSMQ_GetMessage(string _MQ_Path) { //set the correct message queue MessageQueue _msgQ = new MessageQueue(_MQ_Path, QueueAccessMode.ReceiveAndAdmin

MSMQ WCF life cycle on a web site

两盒软妹~` 提交于 2019-12-11 10:15:59
问题 I've created a console application that listens to a queue using WCF in the past and have no problems with that implementation. My question: If, instead of listening to the queue on a console application, I listen to a queue through my website, when would the message be picked up? Would it be instant, as is the case with the console app? Would the message only be received when someone requests a page on the site? Regards. 回答1: A website is not a good host container for a MSMQ client. The

Sending to authenticated queue

旧街凉风 提交于 2019-12-11 09:41:48
问题 I have a transactional private queue on my local machine. If the queue is not authenticated, the message goes into the queue. If I set the queue to be authenticated, it doesn't. The application sending to the queue is running as myself (and I have full control on the queue). Anonymous users also have Send Message permissions on the queue. I'm confused as to what I need to do to send a message to an authenticated queue. Here is the binding that I am using: NetMsmqBinding msmq = new

Peek MSMQ message with unlimited timeout

ε祈祈猫儿з 提交于 2019-12-11 09:09:53
问题 I am writing an application that peeks message from Microsoft Message Queue (MSMQ). I want my application peeks MSMQ messages in turn(from the first message to the last message ). After peeks the last message completly, the main thread will be blocked until MSMQ have a new message arrive. I've already used MessageQueue.Peek(TimeSpan, Cursor, PeekAction) Method with TimeSpan=MessageQueue.InfiniteTimeout and have a problem: MessageQueue.InfiniteTimeout value approximates 49 days but I want my

Masstransit: Can it use central msmq server? (Or should I start w/RabbitMQ from the start?)

ⅰ亾dé卋堺 提交于 2019-12-11 08:37:43
问题 I set up the Masstransit sample apps, and all was great. Local operation, msmq, looks good. Now I am starting to put masstransit in my real app. In my real app, I have jobs coming from four servers, and processing happening on two worker systems. It seems that masstransit always wants to push to: msmq://localhost/... But I thought I would set up a single, central, msmq server: msmq:///... It appears (I may be missing something! Please correct me if I am off!) that when using msmq, that I need