msmq

wcf msmq service activation fails

不羁岁月 提交于 2019-12-11 07:23:01
问题 I have wcf service using net.msmq protocol but service fails to activate with following error. What could be wrong? Looks like it is trying to find machineid or something in AD but why? Sevice name is like net.msmq://localhost/private/myservice.svc A connection with Active Directory cannot be established. Verify that there are sufficient permissions to perform this operation. System.Messaging.MessageQueue.GetMachineId(String machineName) System.Messaging.MessageQueueCriteria.set_MachineName

Exception handling in delegate

送分小仙女□ 提交于 2019-12-11 07:00:13
问题 I have the following code which gives me an " Exception was unhandled by user code " when it tries to throw an error: private static void _msgQ_RecieveCompleted(object sender, ReceiveCompletedEventArgs e) { try { //queue that have received a message MessageQueue _mq = (MessageQueue)sender; //get the message off the queue Message _mqmsg = _mq.EndReceive(e.AsyncResult); throw new Exception("This is a test exception by Tim"); //set the values back into a formatted struct //now process your SQL..

Sending files over MSMQ

江枫思渺然 提交于 2019-12-11 06:37:27
问题 In a retail scenario where each stores report their daily transaction to the backend system at the end of the day. Today a file consisting of the daily transactions and some other meta information is transferred from the stores to the backend using FTP. I’m currently investigating replacing FTP with something else. MSMQ has been suggested as an alternative transport mechanism. So my question is, do we need to write a custom windows service that sticks the daily transactions file into a

Can't get service to pull from (dead letter) queue

一笑奈何 提交于 2019-12-11 05:14:17
问题 I have a queue named log on a remote machine. When I call that queue locally, I specify a custom dead-letter queue by modifying my NetMsmqBinding: _binding.DeadLetterQueue = DeadLetterQueue.Custom; _binding.CustomDeadLetterQueue = new Uri( "net.msmq://localhost/private/Services/Logging/LogDeadLetterService.svc"); This works fine; when I force my message to fail to get to its destination, it appears in this queue. Now, I have a service hosted in IIS/WAS to read the dead-letter queue. It it

Peek MSMQ message with infinite timeout

戏子无情 提交于 2019-12-11 03:08:46
问题 I am writing an application that peeks message from Microsoft Message Queue (MSMQ). I want my application peeks MSMQ messages in turn(from the first message to the last message ). After peeks the last message completly, the main thread will be blocked until MSMQ have a new message arrive. I've written a bit of code, but have an exception that explained like below: Message ret = null; Cursor cursor = mq.CreateCursor(); bool isTheFirst = true; while (true) { if (isTheFirst) { ret = mq.Peek(new

Do MassTransit or nServiceBus support MSMQ over HTTP transport?

自古美人都是妖i 提交于 2019-12-11 01:26:53
问题 I understand it's available since MSMQ 3.0, is it available via any of the .NET ESBs? Is this possible with other MQ transports (ActiveMQ, etc)? Thanks, E. 回答1: NServiceBus use msmq as its main transport but does not support the http option for Msmq. Can you elaborate on what you're trying to achieve? Perhaps the NServiceBus gateway component is what you need? http://docs.particular.net/nservicebus/gateway/ Hope this helps! 回答2: MassTransit does not support MSMQ over HTTP in any way. RabbitMQ

Clustered MSMQ - Invalid queue path name when sending

邮差的信 提交于 2019-12-11 01:13:34
问题 We have a two node cluster running on Windows 2008 R2. I've installed MSMQ with the Message Queue Server and Directory Service Integration options on both nodes. I've created a clustered MSMQ resource named TESTV0Msmq (we use transactional queues so a DTC resource had been created previously). The virtual resource resolves correctly when I ping it. I created a small console executable in c# using the MessageQueue contructor to allow us to send basic messages (to both transactional and non

Workflow Service stops responding after 464 messages

懵懂的女人 提交于 2019-12-11 01:04:10
问题 I am having a peculiar issue while executing workflows. I have tried everything I could think of and now need ideas. Here is my configuration: 1. A WF4 Workflow Service (xamlx) hosted in IIS 7 and uses net.msmq/netMsmqBinding for transport (MSMQ is transactional). 2. No Workflow Persistence is used. 3. I use a console app client to send messages to the workflow (each message creates new workflow). 4. Each workflow looks like: Wait for START message -> Wait for END message (I only send START

MSMQ querying for a specific message

我的未来我决定 提交于 2019-12-10 21:14:45
问题 I have a questing regarding MSMQ... I designed an async arhitecture like this: CLient - > WCF Service (hosted in WinService) -> MSMQ so basically the WCF service takes the requests, processes them, adds them to an INPUT queue and returns a GUID. The same WCF service (through a listener) takes first message from queue (does some stuff...) and then it puts it back into another queue (OUTPUT). The problem is how can I retrieve the result from the OUTPUT queue when a client requests it... because

MSMQ or Service Broker or bulk insert for FIFO message processing?

自作多情 提交于 2019-12-10 20:46:05
问题 We have a scenario where we need to use update/insert queries to the database against incoming real time events. We can go for either of the options presented below 1- MSMQ 2- SQL Service Broker 3- Custom built caching mechanism (using file cache, Bulk Inserts, triggers to convert inserts into updates if rows already exist etc) We are not using an transactions, what should be the best option? If we decide to use MSMQ, there is no guarantee about the ordering of the messages, we want it FIFO.