1

Closed

Same message received multiple times after multiple stop/start of the message bus.

description

Note that I'm using a custom made ActiveMQ transport (that I'm willing to give once it is ready).
Note that I'm submitting a patch below.
 
  • start SampleManagedEndpoint.exe
  • stop/start the service
  • start SampleMonitorClient.exe
  • select ManagedClient and click Ping
  • you should see the following output in the ManagedEndpoint window:
    Starting Endpoint
    Endpoint Started
    Stopping Endpoint
    Endpoint Stopped
    Starting Endpoint
    Endpoint Started
    Ouch! You said:Hello from Monitor Client! @ 13/07/2009 6:08:36 PM UTC
    Ouch! You said:Hello from Monitor Client! @ 13/07/2009 6:08:36 PM UTC
     
    PATCH:
    open file MessageBus.cs and edit the ShutdownService method like this:
    The Transport.MessageReceived was subscribed each time the service was started, but it was never unsubscribed!
     
    protected override void ShutDownService()
    {
        //Transport.Stop();
        Transport.MessageProcessingError -= HandleMessageProcessingError;
        Transport.MessageReceived -= AcceptMessageFromTransport;
    }
Closed Jul 8, 2010 at 4:58 AM by HakanL

comments

PlasticLIzard wrote Jul 22, 2009 at 5:50 AM

I guess I don't have notifications set up for issues - just saw this - I will apply your patch shortly, thank you

wrote Aug 20, 2009 at 6:58 PM

wrote Jul 8, 2010 at 3:33 AM

HakanL wrote Jul 8, 2010 at 4:58 AM

Verified by livetocode

wrote Jul 8, 2010 at 4:58 AM

wrote Feb 14, 2013 at 2:23 AM

wrote May 16, 2013 at 6:46 AM