msmq

Steps to install Microsoft Message Queuing (MSMQ) ActiveX?

那年仲夏 提交于 2019-12-24 09:25:18
问题 On Windows Vista Business, I installed the MSMQ core components but I can not see a 'Microsoft Message Queuing' ActiveX (I want to import it in Delphi). To verify my install, where should I look for the ActiveX file? The MSMQ service is installed and uses an executable in the system directory. 回答1: http://www.borlandtalk.com/threaded-com-msmq-listener-on-client-app-not-a-com-server-vt109777.html shows that there must be MSMQ type library (it uses MSMQ_TLB and types like MSMQQueueInfo, and

Can we use msmq messaging with wcf data service

非 Y 不嫁゛ 提交于 2019-12-24 06:49:44
问题 I have a Wcf Data service exposing entities from Ado.net entity framework. I would like to know whethere I can use msmq messaging with my data service. After searching on internet i could find links for using with a wcf service only. Please provide some links with a sample. 回答1: No you cannot. WCF Data Services is using HTTP/REST only - it cannot be used over any other protocol or with any other binding. MSMQ is only available when you use "regular" WCF services that use the SOAP protocol for

How to check if public MSMQ is empty

独自空忆成欢 提交于 2019-12-23 15:11:10
问题 Is there any way to check if a public MSMQ is empty? For a private MSMQ it's easy: private bool IsQueueEmpty(string path) { bool isQueueEmpty = false; var myQueue = new MessageQueue(path); try { myQueue.Peek(new TimeSpan(0)); isQueueEmpty = false; } catch (MessageQueueException e) { if (e.MessageQueueErrorCode == MessageQueueErrorCode.IOTimeout) { isQueueEmpty = true; } } return isQueueEmpty; } How would I do the same check for a public MSMQ? If I try to check a public MSMQ with the code

MSMQ WCF Throttling

拟墨画扇 提交于 2019-12-23 14:56:26
问题 I have a windows service that reads my message queue through WCF. I want the service to process one message before another message (intensive memory actions per msg). I set the throttling configuration to 1, but it does not seem to do anything. If i have 6 messages in my queue, it takes 4 right after the start. Am i missing something? My web.config : <system.serviceModel> <client> <endpoint address="net.tcp://spserv30:9999/services/SPInterface" binding="netTcpBinding" bindingConfiguration=

MSMQ WCF Throttling

断了今生、忘了曾经 提交于 2019-12-23 14:56:26
问题 I have a windows service that reads my message queue through WCF. I want the service to process one message before another message (intensive memory actions per msg). I set the throttling configuration to 1, but it does not seem to do anything. If i have 6 messages in my queue, it takes 4 right after the start. Am i missing something? My web.config : <system.serviceModel> <client> <endpoint address="net.tcp://spserv30:9999/services/SPInterface" binding="netTcpBinding" bindingConfiguration=

Preserve message order when consuming MSMQ messages in a WCF application

那年仲夏 提交于 2019-12-23 14:49:25
问题 I have an application that consumes messages from an MSMQ queue. The application uses MSMQ activation of a WCF service hosted in the IIS using AppFabric. It is essential that the order of messages is preserved. But does MSMQ guarantee that the message order is preserved? It seems to me, that if my application fails to process a message, e.g. because of a broken connection to the database, then the message is moved to the retry queue. This allows the application to receive new messages from

Preserve message order when consuming MSMQ messages in a WCF application

不羁的心 提交于 2019-12-23 14:49:09
问题 I have an application that consumes messages from an MSMQ queue. The application uses MSMQ activation of a WCF service hosted in the IIS using AppFabric. It is essential that the order of messages is preserved. But does MSMQ guarantee that the message order is preserved? It seems to me, that if my application fails to process a message, e.g. because of a broken connection to the database, then the message is moved to the retry queue. This allows the application to receive new messages from

transactional vs. non-transactional msmq

亡梦爱人 提交于 2019-12-23 12:27:27
问题 I keep seeing documentation saying that its not possible to send to a remote transactional msmq queue, outside the scope of a transaction. I'm finding this hard to believe because I think I've been doing exactly that for weeks now. I have a small app that posts messages to a remote queue that is transactional. Just to experiment with performance, various versions of the client have either used a TransactionScope to wrap the send operation or not. Ultimately, using some compensating

MSMQ command line in win 7

孤街浪徒 提交于 2019-12-23 11:52:45
问题 Is there a cmd line for MSMQ basic operation (get the queue size, purge queue). I tried google it but did not get any think useful. 回答1: The simplest and the best way is to use powershell, take a look on PowerShell Community Extensions and you'll be able to invoke following commnads Clear-MSMQueue Get-MSMQueue New-MSMQueue Receive-MSMQueue Send-MSMQueue Test-MSMQueue See how to purge from cmd 来源: https://stackoverflow.com/questions/9018826/msmq-command-line-in-win-7

How to move a msmq message to a subqueue

对着背影说爱祢 提交于 2019-12-23 10:28:49
问题 Using the System.Messaging classes, how do I move a msmq message (in this case a poison message) to a subqueue? Seems like this should be simple, but I haven't been able to figure it out. 回答1: This does not appear to be possible. Ayende resorts to the unmanaged API in Rhino Service Bus, and if he can't do it then I certainly can't. 回答2: For the record, I just learned today via a colleague that Microsoft finally added support for addressing subqueues in 4.0. 来源: https://stackoverflow.com