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

  • SEARCH
  • Home
  • 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 7522647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:34:55+00:00 2026-05-30T02:34:55+00:00

I’m testing NServiceBus and I’ve done following scenario: 1) published message to host from

  • 0

I’m testing NServiceBus and I’ve done following scenario:
1) published message to host from publisher, while host was not running yet
2) started host

and was hoping, that host will send that message to subscriber, but looks like it tried to handle message before loading subscribers, so naturally in time of handling it there was no subscribers yet, so I’ve lost my message (removed namespaces for clarity):

2012-02-16 13:21:09,634 1 INFO NServiceBus.Unicast.Transport.Msmq.MsmqTranspo
rt [(null)] <(null)> – You are running a community edition of the software which
only supports one thread.

2012-02-16 1321:10,918 [Worker.5] INFO NServiceBus.Unicast.UnicastBus [(null)]
<(null)> – Received message ItemCommand, with ID b591c15e-ee05-4d28-99da-1bac1a6a5ecb\2991 from sender Generator@USER-PC

2012-02-16 13:21:11,021 [Worker.5] INFO NServiceBus.Unicast.UnicastBus [(null)]
<(null)> – Subscribing WinFormsReceiver@USER-PC to message type ItemEvent

2012-02-16 13:21:11,026 [Worker.5] INFO NServiceBus.Unicast.UnicastBus [(null)]
<(null)> – Subscribing Receiver@USER-PC to message type ItemEvent

Generic host is generated by using modeling tools, so default configuration.

Update: added model to understand better what is going on, also rephrased question below
enter image description here

Host type is NServiceBusHost

I think question should sound like this: can I register subscribers in host, not having subscribers to register by them selves or at least to check, if all subscribers are subscribed before starting to handle message? Here is scenario and how it works by default:
1) Host dies
2) Receiver dies
3) Generator generates message
4) Host is recovered, it has message in its queue
5) Host handles message
6) Receiver is recovered, it subscribes to host, but it’s queue is empty, as host didn’t knew about receiver on step 5 when it had message for receiver.

Because right now, after Host is recovered and it is ready to handle message, it does not know, that there will be receiver, so when it handles message in step 5, it won’t send it to receiver in default configuration.

  • 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. Editorial Team
    Editorial Team
    2026-05-30T02:34:57+00:00Added an answer on May 30, 2026 at 2:34 am

    Yes, NServiceBus can do exactly what you have described. You may be encountering a problem because you are not running in a profile that is robust enough for your test. By default, the example NSB projects run with in-memory subscription. This means that if the host that is publishing (‘Host’ in your case) is shut down, all the subscriptions are lost. You want to check out other profiles like the Integration and Production profiles. Integration saves subscribers in a queue and Production saves subscribers in a database. Then NSB understands if there is an expected subscription to fulfil that is not running (because the subscription information is persisted).

    Further, I would suggest the following:
    1) Generator does a Bus.Send() to Host
    2) Host handles message and then does a publish
    3) Receiver subscribes to Host

    This that Host must be configured as a Publisher.

    Hope this helps.

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

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.