msmq

MSMQ Messages Are Stuck In The Outgoing Queue

爷,独闯天下 提交于 2019-12-18 02:15:25
问题 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

Implementing a Message Bus architecture

独自空忆成欢 提交于 2019-12-17 22:31:23
问题 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? 回答1: IMHO, with so many good

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

北城以北 提交于 2019-12-17 22:14:26
问题 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. 回答1: 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.

The number of messages on an MSMQ via Powershell

◇◆丶佛笑我妖孽 提交于 2019-12-17 16:46:11
问题 I'd like to provide a queuepath and get the number of messages thereupon. Any advice on how this could be done? 回答1: This will list all queues on a machine and the number of messages: gwmi -class Win32_PerfRawData_MSMQ_MSMQQueue -computerName $computerName | ft -prop Name, MessagesInQueue 回答2: So, I saw this: What can I do with C# and Powershell? and went here:http://jopinblog.wordpress.com/2008/03/12/counting-messages-in-an-msmq-messagequeue-from-c/ And made this # Add the .NET assembly MSMQ

Java and MSMQ

青春壹個敷衍的年華 提交于 2019-12-17 16:37:07
问题 I was curious if anyone had any suggestions on a Java library that provides access to MSMQ? I've downloaded the trial of the J-Integra Java-COM library and have built and run their MSMQ example app, but I was curious if there were any good (free :)) alternatives. I've run across a few JNI implementations like jMSMQ and a few others, but I'd rather avoid JNI if possible. We've also investigated some .NET<->JMS interop solutions like JNBridge (with ActiveMQ). I think our company has decided to

Why do I have to re-install MSMQ when I come off and back on to the office network?

北战南征 提交于 2019-12-14 03:42:23
问题 I've got a really frustrating problem with MSMQ constantly refusing to work even though it's installed and started. I have MSMQ installed on my Vista Business laptop (MSMQ-Container;MSMQ-Server;MSMQ-Triggers;MSMQ-DCOMProxy) and this laptop is joined to the company domain. Registry shows that it's installed under Workgroup mode which is fine by me as I only want to use direct connections to private queues (using a full FormatName (TCP based)) and could care less about AD integration. When

MSMQ WCF hosted in IIS

蓝咒 提交于 2019-12-13 21:46:10
问题 I am stuck in the following case - I have two web applications – A and B . They are both running on the same computer. B is hosting a netMsmqBinding WCF Service. Also, B ’s application pool has just recycled itself. A calls B ’s WCF service. I see that the message has arrived in the private MSMQ queue which I have created. But until I don’t browse the *.svc URL the message is not proceed by B . Am I missing something required by this technology? What is the clean way to implement such a

EOleException on accessing message body

只谈情不闲聊 提交于 2019-12-13 07:24:28
问题 A Windows service when trying to access the .Body property of a MSMQ message object throws an EOleException - but only when the Xml document contained in this message has an empty list node. The EOleException message complains about insufficient memory (exception code -2147024882). Since the exception only occurs with the smallest possible Xml document, memory cannot be the real issue. The next thing that comes to mind is a problem with access rights but then again all "good" messages (as

Peeking an MSMQ Outgoing Queue with JScript

本秂侑毒 提交于 2019-12-13 06:27:41
问题 I created a script to monitor a set of queues, and, while it works perfectly with Remote Private Queues, it doesn't work with Outgoing Queues. I made an experiment by removing everything but the essential from the script, and I created the following test script: var info = new ActiveXObject("MSMQ.MSMQQueueInfo"); info.FormatName = /*<Queue name>*/; // 0x80 = MQ_ADMIN_ACCESS // 0x20 = MQ_PEEK_ACCESS // 0x00 = MQ_DENY NONE var mq = info.Open(0x80 | 0x20, 0x00); var msg = mq.PeekCurrent(false,

Messaging platform

回眸只為那壹抹淺笑 提交于 2019-12-13 03:49:47
问题 We're considering a messaging platform to integrate two core systems in a banking environment. We're looking at open source options. Which products have you used and can you share experiences? 回答1: If you're on Microsoft, I would start your search with MSMQ. I've used MSMQ at work quite a bit and never really had any serious problems with it. WCF has great support for MSMQ if you're using .NET. I've also used Apache ActiveMQ for Java JMS, and had mixed results. It has some really nice tools