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 8219935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:21:01+00:00 2026-06-07T13:21:01+00:00

Anybody successfully got MassTransit working with AppHarbor and CloudAMQP? I am having a bear

  • 0

Anybody successfully got MassTransit working with AppHarbor and CloudAMQP?

I am having a bear of a time with it.

I have the publisher (the web site) sending messages, but the server (a background worker) does not appear to be picking them up.

One of the things that concern me is that MT requires the rabbitmq scheme whereas CloudAMQP sets the scheme to amqp.

I am swapping the scheme (from amqp to rabbitmq) when configuring the bus and noticed the scheme in the addresses of the message is rabbitmq, which makes sense, since I replaced them.
But I am wondering if they have to be amqp for the server to pick them up?

Here is a simple message that I have sent, it got to RabbitMQ but server is not picking it up.

message_id: 08cf2cbc-5b4f-14dd-1231-381f8b520000
delivery_mode:  2
headers:    
Content-Type:   application/vnd.masstransit+json
Payload
614 bytes
Encoding: string
{

  "destinationAddress": "rabbitmq://98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com:*********@lemur.cloudamqp.com/98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com/Messages.Product:ProductCreatedEvent",

  "headers": {},

  "message": {

    "id": "dd6ecfaa-60d2-4cd4-8cd6-a08a00e872fb"

  },

  "messageType": [

    "urn:message:Messages.Product:ProductCreatedEvent"

  ],

  "retryCount": 0,

  "sourceAddress": "rabbitmq://98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com:**********@lemur.cloudamqp.com/98eabe2a-aae8-464c-8555-855518dd87d0_apphb.com/enterprise_web"

}

Thanks,
Joe

Edit: Thanks Carl pointing out the passwords in the url

  • 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-06-07T13:21:03+00:00Added an answer on June 7, 2026 at 1:21 pm

    Edit:
    To let anyone else thinking about using MassTransit with CloudAMQP, you may want to look into EasyNetQ instead. Not taking anything away from MassTransit, its a great project. The problem when using it with a service like CloudAMQP that charges data usage per month, is that MassTransit uses polling to check for messages, instead of subscribing to them (at least in the last version I was working with 2.1.1). This polling will eat into your data usage even though you may not be publishing messages.

    Well it is in fact possible.

    Come to find out, it was all part of the configuration of the background worker on appharbor.

    Once that got worked out the background worker started staying “alive” and consuming messages. The issue revolved around app.config vs myworker.exe.config and config transforms. Once I realized it was a config problem this link helped out. App.config transformation for appharbor background workers

    You have to swap out the amqp scheme for rabbitmq but that is not to bad.
    Here is my bus configuration for the background worker:

    log.Info("Configuring MassTransit");
    var rabbitUrl = ConfigurationManager.AppSettings["CLOUDAMQP_URL"];
    
    var bus = ServiceBusFactory.New(sbc =>
    {
        // configure for log4net
        sbc.UseLog4Net();
    
        // configure the bus
        sbc.UseRabbitMq();
        sbc.UseRabbitMqRouting();
        sbc.ReceiveFrom(String.Format("{0}/server", rabbitUrl.Replace("amqp://", "rabbitmq://"))); // need to swap the scheme for masstransit
    
        // finds all the consumers in the container and register them with the bus
        sbc.Subscribe(x => x.LoadFrom(container));
    
        sbc.BeforeConsumingMessage(() =>
        {
            var session = container.GetInstance<ISessionFactory>().OpenSession();
            CurrentSessionContext.Bind(session);
        });
    
        sbc.AfterConsumingMessage(() =>
        {
            var sessionFactory = container.GetInstance<ISessionFactory>();
            if (CurrentSessionContext.HasBind(sessionFactory) == false) return;
    
            var session = CurrentSessionContext.Unbind(sessionFactory);
            if (session != null)
            {
                session.Dispose();
            }
        });
    
        var results = sbc.Validate();
        if (results.Any())
        {
            throw new Exception("MassTransit may not be setup correctly. Review validate results");
        }
    });
    
    // finally inject the bus into the container
    container.Inject(bus);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anybody who has successfully used Three20 v1.1 in Xcode 4? I have
I wonder if anybody has been able to successfully use KiokuDB on Windows. Having
Is there anybody who has successfully accessed a Web service from an Oracle stored
Has anybody successfully integrated Clearcase with Teamcity (which advertises Clearcase support) to realize a
Has anybody ever successfully written code to extract data from a SharePoint 2007 list
Is anybody using OpenGLES2.0 shaders (GLSL) successfully for audio synthesis? I already use vDSP
I am using successfully the mobylette rails gem: https://github.com/tscolari/mobylette I was wondering if anybody
I wanted to know if anybody has successfully compiled a data structure containing EXTERNAL
I was working(learning) with Data bound controls in ASP.Net and suddenly got the error:
I'm about to make a web app which will have a pretty heavy client

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.