Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 62487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:29:01+00:00 2026-05-10T18:29:01+00:00

Is it possible to have multiple listeners to messages carried by MSMQ? WCF appears

  • 0

Is it possible to have multiple listeners to messages carried by MSMQ?

WCF appears to frame everything in terms of services, making communication a point-to-point affair. I want to use a message queue to buffer incoming traffic for another process that records the logs in a database.

There can be be any number of other processes interested in monitoring incoming traffic, and this positively begs for Observer pattern, but I can’t see how to express Observer pattern, at least not using MSMQ via WCF.

Can anyone advise me on this?


Some background on why I care, which may also serve to illustrate the problem: I have a Windows service that accepts connection requests from little black boxes in the field. It sets up sockets and the black boxes send messages describing events annotated with GPS locations in time and space.

I parse message packets from the socket stream and send them via MSMQ to another process that filters duplicates and writes the packets into a database table.

There is any amount of post-processing that would benefit from incremental computation in response to incoming traffic, and user tools perform user notification also in response to incoming traffic.

So, I’d really like to have one process sending the messages, and several receiving them. One of these receivers is responsible for parsing the packet contents and transcribing the message into a database; this is an obvious candidate for the responsibility of finally removing the message from the queue, but there is the question of how to ensure this is the last handler to process the message.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:29:01+00:00Added an answer on May 10, 2026 at 6:29 pm

    I don’t believe MSMQ is appropriately designed to handle this situation by itself. There are only 2 things you can do to a message – Peek() or Get(). AFAIK, there isn’t a good way to track whether a message had been processed by all handlers.

    What might work is to have your process that transcribes the message be the Observee, and publish the message (perhaps using the .NET Event architecture) to all interested Observers before transcribing the message and writing to the database. This would provide a guarantee that all interested Observers saw the message, and the message gets written to the DB appropriately.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Put the InitializeComponent call back at the top where it… May 11, 2026 at 11:22 am
  • added an answer I think this is a better approach: NSString* escapedUrl =… May 11, 2026 at 11:22 am
  • added an answer I had to install Gallio 3.0.5 or better from http://www.gallio.org.… May 11, 2026 at 11:22 am

Related Questions

Is it possible to have multiple listeners to messages carried by MSMQ? WCF appears
Is it possible to have multiple view of the same display object? (e.g. same-computer
Is it possible to have multiple folders where I can place applications to be
On IIS 6, is it possible to have multiple domain names pointing to the
Is it possible to have a file belong to multiple subpackages? For example: /**
A single Biztalk Server can have multiple Host processes. Is it possible to create
Is it possible to use BindingSource.find on multple columns? I have a treeview and
Is it possible to have a MySQLi prepared statement within the fetch() call of
Is it possible to have XML-embedded JavaScript executed to assist in client-side (browser-based) XSL
Is it possible to have a <div> simultaneously (1) not take up all available

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.