msmq

NServiceBus Bus.Send().Register(callback) Not Working on IIS/Windows Server 2008

巧了我就是萌 提交于 2019-12-07 10:47:05
问题 I have been struggling with this problem for a few days now and I just can't seem to figure it out. I have a simple WCF web service hosted on IIS and Windows Server 2008 R2. The implementation of the Web Service is as follows: var completionResult = new CompletionResult(); var updateTextMessage = new UpdateText { TextTemplateId = textTemplateId, Text = text }; var asyncResult = Global.Bus.Send(updateTextMessage).Register(x => completionResult = x.AsyncState as CompletionResult, null);

Using PHP to Open MSMQ Queues

↘锁芯ラ 提交于 2019-12-07 09:51:44
问题 I have a sample php script to connect to MSMQ on windows. I can create queues and send messages to the queues, however when i try and open the queue to read the messages I keep getting an Access denied exception. the code is here: http://pastebin.com/S5uCiP2Z I think the main problem is the $READ = $MSMQInfo->Open(2,0); line as i am unsure what the 2, 0 options stand for (i cannot find an reference to those any where - i got that code form another example.) Looking at the docs for

WCF Service Listener to MSMQ - Pending Messages

陌路散爱 提交于 2019-12-07 07:51:10
问题 I've created a WCF service that listens to a private MSMQ for jobs. I've throttled my service so that it will only handle one job at a time (maxConcurrentInstances = 1). The problem I have is that when two messages are submitted and I inspect the queue through my Computer Management console, it's empty. I expect there to be one pending message. When I submit three messages, I'll see one pending message in the MSMQ. From reading MSDN, it looks like the ServiceHost is holding the next job in

MSMQ vs. SQL Server Service Broker

馋奶兔 提交于 2019-12-07 03:35:36
问题 I have an application that consists of three parts: a front-end web shop for end-users and business partners an order-management system to handle those orders a technical database system to handle all the technical details of those products and services ordered Today, those systems (which are on separate servers and being developed by separate teams) interoperate using WCF webservices. This setup up works fine - as long as all servers are up. Which they're not - not always, anyway. So I've

Reading MSMQ message count with ruby

≡放荡痞女 提交于 2019-12-06 15:34:23
I've got a problem querying the message count from the remote msmq queue. This is my code: def get_message_count mq_management = WIN32OLE.new('MSMQ.MSMQManagement') mq_management.Init('xxx.yyy.zz.aa', nil,'direct=tcp:xxx.yyy.zz.aa\private$\inbox') message_count = mq_management.MessageCount end xxx.yyy.zz.aa is the IP Address of the remote computer. This method actually works as a charm, BUT: if the queue is empty, then I keep getting this error after certain amount of time: `method_missing': Init (WIN32OLERuntimeError) OLE error code:C00E0004 in MSMQManagement The queue is not open or may not

Passing an unmanaged pointer between two AppDomains (By indirect call)

时光总嘲笑我的痴心妄想 提交于 2019-12-06 15:18:22
.NET 4.5, 64bit Win8 I have two MSMQ running under WCF and hosted under Windows Activation Service. Execute MSMQ: Responsible for calling an unmanaged function and obtaining a pointer IntPtr to 4GB array in addition to other limited size variables. This array is not that important and shouldn't be blocking the queue until it is passed to the DB and having this queue free is a priority. Passing the pointer to the Save MSMQ (Hypothesis). Save MSMQ: Should save the array to the DB across the network then deallocate it from unmanaged memory. The problem here would be: Making sure the array is

Service Bus 1.0 for Windows Server Transaction/Error Handling

纵然是瞬间 提交于 2019-12-06 11:43:42
问题 I'm sure I'm not the first to say it, but there's a severe lack of documentation on the finer points of Service Bus 1.0 for Windows Server out there... I'm hoping some of the MS insiders can help clear a few things up... Do services utilizing queues/topics run in an implicit, ambient transaction? For instance consider the following code snippet: [ServiceBehavior] public class MySbService : IDoWork { [OperationBehavior] void DoSomeWork(WorkRequest request) { DoDatabaseWork();

MSMQ Inconsistent State After Restart

倾然丶 夕夏残阳落幕 提交于 2019-12-06 06:59:43
问题 I'm seeing a really strange error that I'm having a difficult time tracking down. I think its related to my configuration of Rhino ESB, though I'm not sure if RSB is actually causing it, so I figured I'd ask and see if anyone else has come across this in any other usages of MSMQ. I'm using RSB as a client in a web app (ASP.NET, the client runs in the background). The client talks to a windows service via the MSMQ binding for RSB. Restarting the service never appears to have an effect on MSMQ,

MassTransit 2.6.1 Request/Response pattern - Response times out

只谈情不闲聊 提交于 2019-12-06 05:57:45
问题 I'm looking at MassTransit as a ServiceBus implementation to use in a web project. I am playing with the Request/Response pattern and am seeing a long delay between the consumer receiving the message and responding, and the request publisher handling the response; sometimes, it seems like the response is never going to come through (having left it running for 10 minutes, the response has still not come through). the only times that I have seen the handle delegate get called with the response

Creating a private MSMQ queue in a Microsoft Cluster via a script

安稳与你 提交于 2019-12-06 05:45:43
问题 We are migrating to Windows 2008 R2 Standard and will be using a Microsoft Clustering (active-passive) configuration. Our application is heavily dependent on MSMQ private queues and our install creates well over 100 private queues using the following C# code. MessageQueue.Create(".\private$\myqueue", false); Since the install is not running inside the context of the cluster, the queues are created on the local node and not in the cluster. We then tried changing the code to: MessageQueue