msmq

Implementing a 24 queue using MSMQ and WCF

I am shortly starting a project, which requires messages to be held in a queue for a period of 24 hours, this is because the database can't have any updates at certain times of the month. The service also has to be hosted on windows server 2003, which means it will have to be a windows service. It is also required that the service use W...

How to make a service not receive messages at certain times

I'm currently learning wcf for an up and coming project. The service I am creating is using MSMQ to update the database, but the database can't accept messages at certain times. The service is going to be a windows service. The one thing I am coming up against at the moment is how I can get the service to stop reading messages from the...

Initiate MSMQ receive operation from receiver (queue in DMZ, receiver on intranet)

I'm currently outlining the architecture of an SMS messaging integration for a customer. The service will expose an external (Internet facing) interface for receiving messages (which will be used by a third-party service provider) and an internal interface for sending SMS messages. My current idea is to have a WCF application hosted by ...

HTTP Error: 400 when sending msmq message over http

I am developing a solution which will utilize msmq to transmit data between two machines. Due to the seperation of said machines, we need to use HTTP transport for the messages. In my test environment I am using a Windows 7 x64 development machine, which is attempting to send messages using a homebrew app to any of several test machines...

Load Balance WCF and Share a Remote MSMQ for High Throughput

After a ton of reading in books and on the web, I have noticed hints of information that WCF and MSMQ can be used in achieving high throughput. The information I have seen mentions using multiple WCF services in a farm that reads from a single MSMQ queue. The problem is that I have found paragraphs here and there that mentions that hig...

How to configure MessageEndpointMapping by namespace in NServiceBus

I am trying to configure my message endpoint mapping in my NServiceBus configuration by sending messages from different namespaces to different endpoints. As such, I have configured the following in my web.config: However, when my application starts, I receive the following exception: Spring.Objects.PropertyAcce...

Using msmq and wcf

I had posted this question earlier post ? Started reading up on wcf and msmq. My first question would be - say i have a 100 messages in the queue , how would i tell my service to start working on each message asynchronously so that it is working on multiple messages at the same time. is this even possible or is it always a synchronous...

Send C++ Structure to MSMQ Message

Hi, I am trying to send the below structure through MSMQ Message typedef struct { char cfiller[7]; short MsgCode; char cfiller1[11]; short MsgLength; char cfiller2[2]; } MESSAGECODE; typedef struct { MESSAGECODE Header; char DealerId[16]; char GroupId[16]; long Token;...

Masstransit FutureMessage usage example

could someone share a code sample showing how to use masstransit's FutureMessage API? i am assuming this can be used in scenarios where the consumer raises an exception when processing. will i need to have a try/catch in the message handler's consume and create a FutureMessage for the incoming message, whenever an exception occurs? ...

MSMQ Inconsistent State After Restart

Hi everyone, 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 ...

Queued WCF Service which processes every X seconds

I need to create a service which can process queued requests on a configured time interval. For example go to the web and get financial data from a site the requires we limit requests to once per second. I am new to WCF and I am not sure if (1) WCF with MSMQ a proper choice for implementing this? and (2) if so what is the best mechanism...

Connecting two Windows XP with MSMQ

This question is a cross between a developer and a server setup question. I asked on Serverfault but no answer yet. As a developer, I need to setup a test to see how MSMQ works between two machines, and I'm unclear what to do. I will use C# or BizTalk to do the read/write to/from the queues. I have MSMQ installed on two Windows XP c...

Is there a better way to count the messages in an Message Queue (MSMQ)?

I'm currently doing it like this: MessageQueue queue = new MessageQueue(".\Private$\myqueue"); MessageEnumerator messageEnumerator = queue.GetMessageEnumerator2(); int i = 0; while (messageEnumerator.MoveNext()) { i++; } return i; But for obvious reasons, it just feels wrong - I shouldn't have to iterate through every message just...

Setting permission for a remote private message queue - MSMQ

Hello all I'm using MSMQ to transfer data between geographically distributed systems. How can i configure the security of my message queue to give full access to a remote user. Also how can i do it through commands (not powershell)? Thank you NLV ...

Cannot find suitable formatter for custom class object

I'm writing messages to a Message Queue in C# as follows: ObjectMsg objMsg = new ObjMsg(1,"ascii",20090807); Message m = new Message(); m.Formatter = new BinaryMessageFormatter(); m.body = objMsg; queue.Send(m); and I'm trying to read the messages as follows: Message m = new Message() m.Formatter = new BinaryMessageFormatter(); Messa...

Solved::MessageQueue.BeginReceive() null ref error - c#

Have a windows service that listens to a msmq. In the OnStart method is have this protected override void OnStart(string[] args) { try { _queue = new MessageQueue(_qPath);//this part works as i had logging before and afer this call //Add MSMQ Event _queue.ReceiveCompleted += new ReceiveCompletedEventHand...

MSMQ and WebSphere MQ message integration

Hi, Does someone know how to integrate MSMQ to an IBM WebSphere MQ? I guess one can always use BizTalk 2009 (Biztalk host integration server)but that seems to be quite an overkill just to be able to exchange messages between MSMQ and WMQ. Please give me some advice! Someone must have done this before! If it helps your recommendation th...

Send Message from SAP to MSMQ

Is it possible to send a message from SAP to MSMQ ? ...

Is there a simple WCF example online that uses MSMQ?

I have to do a small introductory presentation for my WCF Intro class (for my fellow students). :D Can anyone point me in the right direction for a simple WCF/MSMQ application? Something dead-basic so I don't overwhelm everyone and myself. We're just learning this stuff. :) ...

WCF MSMQ Unit testing

I have created a custom msmq service with WCF, which uses a custom binding as it needs to do some custom logic at the channel layer, where it calls another wcf service. The service is going to be a core pience of functionality for our systems for at the the next few years. i want to do what I can to make sure the service is robust, but, ...