msmq

Check number of messages in input queue

為{幸葍}努か 提交于 2019-12-13 02:29:29
问题 Is this possible to get the number of messages inside my InputQueue using NServiceBus and do I need to bypass it and use native MSMQ interface? It's not gonna be a complete monitoring, we've got a system comprising several NSB components and they're monitored through the usage of Windows performance counters. What I'm trying to achieve is just a simple health check -> sending a NSB message to a component, its response is to contain let's say DB access status and number of MSMQ messages in its

want to read msmq message fast using safe thread in c# .net

别等时光非礼了梦想. 提交于 2019-12-13 00:28:52
问题 i want to read the MSMQ where queue data in byte and numbers of queues generated in 1 mins about 1500. so if read continuously queue cpu goes on 30%. and after some time it stopped. i need to read queue in high volume upto 4 hrs.. so i want safe thread reading in such a manner that shouldn't be block. actually i am not good about threading so can you please help me out.. currently i am reading in this manner bool ProcessStatus; //process Thread _UDPthreadConsme; private void btn_receive_Click

Communication between two separate applications

99封情书 提交于 2019-12-12 21:25:41
问题 I have developed a windows service which reads data from a database, the database is populated via a ASP.net MVC application. I have a requirement to make the service re-load the data in memory by issuing a select query to the database. This re-load will be triggered by the web app. I have thought of a few ways to accomplish this e.g. Remoting, MSMQ, or simply making the service listen on a socket for the reload command. I am just looking for suggestions as to what would be the best approach

MSMQ, Message is put on queue and disapears but is never picked up by service contract

自作多情 提交于 2019-12-12 19:19:35
问题 I have a local private queue. I also have a WCF-service inside an MVC-application that listens to the queue using msmqIntegrationBinding. The problem is that the service contract is never invoked when a message is queued but the message disapears the moment after. The message is not in the poison queue. Here is the config-part where i declare the binding to the queue: <services> <service name="SkruvInfo.Web.Service.QueueMessageReceiver"> <endpoint address="msmq.formatname:DIRECT=OS:LEIA

Distributed transaction with MSMQ and SQL Server but sometimes getting dirty reads

為{幸葍}努か 提交于 2019-12-12 18:36:07
问题 Our SQL Server 2014 database is set to READ_COMMITTED_SNAPSHOT . We use MSMQ and distributed transactions (we use MassTransit 2.10) In one part of our system we read a message from the queue, make database updates and then publish a new message to the queue (all under a single transaction). We have found a situation where it seems that the update are not committed when the next message is processed (it reads from the same table the first part updates) even though I would expect that message

MSMQ calls over HTTP not reaching destination queue

我只是一个虾纸丫 提交于 2019-12-12 18:02:22
问题 I have a WCF service that uses MSMQ communication, when i run the service on my local netwrok, i configure the service endpoints in the client config files to point to the host computer, for example if the endpoint specified on the service host is: <endpoint address="net.msmq://localhost/private/MsmqService/MyMsmqService" binding="netMsmqBinding" bindingConfiguration="test" contract="MsmqService.IMyMsmqService"> <identity> <dns value="localhost" /> </identity> </endpoint> I configure my

Config for WCF MSMQ in workgroup mode

允我心安 提交于 2019-12-12 17:15:51
问题 In trying to deploy a service I have found that it won't start because MSMQ is in workgroup mode. I have created a private queue instead and changed the config files to refer to it, but the WCF service host refuses to start with this message: Binding validation failed because the binding's MsmqAuthenticationMode property is set to WindowsDomain but MSMQ is installed with Active Directory integration disabled. Can anyone tell me how to specify workgroup mode in the config file? The information

How to detect that all subscribers to an event have responded

断了今生、忘了曾经 提交于 2019-12-12 15:52:15
问题 I am currently investigating Mass Transit. I have written a simple sample based on the Starbucks sample. I have the following saga: Define(() => { Initially( When(ReportRequest) .Then((saga, message) => saga.ProcessReportRequest(message)) .TransitionTo(WaitingForReportToComplete) ); During(WaitingForReportToComplete, When(ReportComplete) .Then((saga, message) => { Console.WriteLine("Report Complete for '{0}'", saga.Name); saga.CompleteReportRequest(message); }) .Complete() ); }); The problem

Rebus and Remote queues

折月煮酒 提交于 2019-12-12 13:51:21
问题 I'm using Rebus (https://github.com/rebus-org (v.0.83)) and until now it's been all local to a single machine. Now I need to use a remote queue from my website to an app server. It's not abundantly clear to me how to set this up with Rebus. A few questions I guess I need MSMQ on both machines (web & app) correct? I've configured the web site to UseMsmqInOneWayClientMode ; or is there a way to specify to send it over http? My configuration looks like this more or less. I'm guessing that

MessageQueueTransaction timeout

筅森魡賤 提交于 2019-12-12 12:28:51
问题 I read about MessageQueueTransaction in MSDN, but I can't find anything about timeouts. What happens if the Commit or Abort just never get called ? Is there some sort of timeout for a transaction between the time it's open and it's release ? 回答1: This is an internal transaction so doesn't involve MSDTC (which does have a timeout). I believe that the transaction will exist until your application calls commit or abort. If the application fails or exits without calling either then I would expect