msmq

MSMQ cannot delete or purge a queue

不问归期 提交于 2019-11-29 02:46:04
问题 I'm very new to MSMQ. We have a critical system using MSMQ and it is not able to start due to insufficient resources. It appears that MSMQ is at capacity. I am trying to purge messages (or even delete unneccessary queues), but I receive the following error when purging: Cannot delete all messages from queue. Error: Access to Message Queuing system is denied. What are my options? Is there a way to delete queues when the services is off? 回答1: If you open Computer Management on the machine,

消息队列MSMQ的使用

戏子无情 提交于 2019-11-29 02:31:27
1.MSMQ安装 控制面板-程序和功能-打开或关闭Windows功能-Microsoft Message Queue(MSMQ)服务器,选中所有,点击确定。 2.消息队列的应用场景(转载自 http://www.cnblogs.com/stopfalling/p/5375492.html ) ①异步处理 ②应用解耦 ③流量削锋 ④日志处理 ⑤消息通讯 3.MSMQ消息分为事务性和非事务性 非事务性的消息保存在内存中,机器重启后丢失消息队列中的消息。 事务性的消息经过了持久化,保存在硬盘中,机器重启后队列中的消息不会丢失。 4.测试代码 消息发送方 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Messaging; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { MessageQueue MSMQ = CreateMessageQueue(@".\private$\tpmsmq"); MSMQ.Formatter = new

How do I handle message failure in MSMQ bindings for WCF

十年热恋 提交于 2019-11-29 02:23:15
问题 I have create a WCF service and am utilising netMsmqBinding binding. This is a simple service that passes a Dto to my service method and does not expect a response. The message is placed in an MSMQ, and once picked up inserted into a database. What is the best method to make sure no data is being lost. I have tried the 2 following methods: Throw an exception This places the message in a dead letter queue for manual perusal. I can process this when my strvice starts set the receiveRetryCount=

MSMQ COM API in C#

断了今生、忘了曾经 提交于 2019-11-29 01:52:20
What is the best way to use MSMQManagement from C#? I need the ability to peek and purge a local outgoing queue when the remote machine is disconnected. Apparently some users can do this through the COM API, but in the COM References tab, I don't have the "Microsoft Message Queue 3.0 Object Library" that other websites/blogs/postings mention (nor anything remotely similar). I've searched the machine for Interop.MSMQ.dll and cannot find it either. We are using VS 2008 and running on Windows 7 64-bit. What am I missing? Are there other mechanisms to accomplish this through "normal" managed

MSMQ Messages Are Stuck In The Outgoing Queue

寵の児 提交于 2019-11-28 23:18:33
Although my question looks similar to some already found on SO, those post did not help me, so here it is: Given: Two machines on the same segment (naturally in the same domain, actually on the same desk) Both machines are Windows 7 workstations Both machines have disabled firewall Both machines see each other (ping works) There is a private non transactional message queue test on one of them. The sender machine has HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\SimpleClient\@BinaryEnabled = 'Yes' The queue owner sends a message from another machine The message is stuck on the outgoing queue,

Disadvantages of SQL Server Service Broker [closed]

五迷三道 提交于 2019-11-28 22:37:06
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have been doing r&d for the scope of SQL Server Service Broker to replace current messaging solution MSMQ. I want to know disadvantages of SQL Server Service Broker in contrast to MSMQ for following criteria. Development Troubleshooting Performance (let's say we need to process

Receiving MSMQ messages with Windows Service

时光毁灭记忆、已成空白 提交于 2019-11-28 22:09:49
I'm creating a Windows Service in C#. What is the best way to listen for messages?? How do I code this properly?? You don't listen. You configure MSMQ Activation to activate your component when messages arrive. The link has all the details you need, code and configuration. As previously stated, MSMQ Activation is probably the best way, if you can use that. Alternatively, here is code that I've used: var ts = new TimeSpan(0, 0, 10); MessageQueue q = GetQueue<T>(); while (true) { try { Message msg = q.Receive(ts); var t = (T)msg.Body; HandleMessage(t); } catch (MessageQueueException e) { // Test

MSMQ: What can cause a “Insufficient resources to perform operation” error when receiving from a queue?

♀尐吖头ヾ 提交于 2019-11-28 17:51:56
MSMQ: What can cause a "Insufficient resources to perform operation" error when receiving from a queue? At the time the queue only held 2,000 messages with each message being about 5KB in size. Ragepotato From John Breakwell's Blog there are eleven possibilities: The thread pool for the remote read is exhausted (MSMQ 2.0 only). The number of local callback threads is exceeded The volume of messages has exceeded what the system can handle (MSMQ 2.0 only). Paged-pool kernel memory is exhausted. Mismatched binaries. The message size is too large. The machine quota has been exceeded. Routing

Implementing a Message Bus architecture

最后都变了- 提交于 2019-11-28 16:44:28
I'm currently doing analysis and design for a new message bus architecture in my company. I have tried MSMQ to do something like this in the past and it works well and was thinking of doing the same thing again for this project but using WCF as the API instead of using the System.Messaging API. Has anyone had experience with MSMQ in WCF? Is it easier to use then the System.Messaging API? What would be some benefits of using WCF over System.Messaging or vice versa? Mauricio Scheffer IMHO, with so many good, flexible and proven bus architectures to choose from ( NServiceBus , Mass Transit ,

Queue alternatives to MSMQ on Windows? [closed]

ε祈祈猫儿з 提交于 2019-11-28 16:44:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . If you want to use a queuing product for durable messaging under Windows, running .NET 2.0 and above, which alternatives to MSMQ exist today? I know of ActiveMQ (http://activemq.apache.org/), and I've seen references to WSMQ (pointing to http://wsmq.net), but the site seems to be down. Are there any other