Kristian Kristensen’s Blog


nServiceBus Manufacturing Sample and SendOnlyEndpoints

Posted in Code,NServiceBus by Kristian Kristensen on the October 29th, 2010

I’ve been tinkering with nServiceBus recently and wanted to check out and run the latest SVN version (upcoming version 3.0). When I ran the Manufacturing sample that comes out of the box it didn’t work and complained about “Send only endpoints can’t contain message handlers.”

It turns out that there’s recently been a change to the Unicast Bus so it’ll check if the endpoints you’re using are send only or not and enforce a contract. That’s fine and well and serves as an explanation, but that didn’t make the sample run. Turns out what’s needed is the empty configuration element in the app.config file. That means you should change the App.config file in the HR.Host project to match the following:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="MsmqTransportConfig" type="NServiceBus.Config.MsmqTransportConfig, NServiceBus.Core" />
    <section name="UnicastBusConfig" type="NServiceBus.Config.UnicastBusConfig, NServiceBus.Core" />
  </configSections>

  <!-- in order to configure remote endpoints use the format:
       "queue@machine"
  -->

  <MsmqTransportConfig
  InputQueue="hr"
  ErrorQueue="error"
  NumberOfWorkerThreads="1"
  MaxRetries="5"
  />

</configuration>

So it seems that without the empty configuration element inside, it’ll fail thinking there’s no Unicast bus configuration.

Also, you want to do what’s described here on the NServiceBus Mailling List to get the sample running under .NET 4.0: Manufacturing Sample Exception

  • If you like my writing you should subscribe to my RSS feed.

    My Talk From JAOO/GOTOcon Is Up On Channel9

    Posted in Code,IronPython,IronRuby,Misc by Kristian Kristensen on the October 16th, 2010

    As I said in my previous blog entry my talk at GOTOcon (previously JAOO) was recorded by Microsoft with the intent of putting it up on Channel9. After some processing and uploading it is now up online.

    Link to Channel9: Kristian Kristensen – Iron* – An Introduction to Getting Dynamic on .NET

    From Channel9 you can download the video in a variety of formats.

    I’ve embedded the video below using the Channel9 SilverLight player:

    Get Microsoft Silverlight

    Let me know if you have any questions, comments or suggestions.

  • If you like my writing you should subscribe to my RSS feed.

    Iron Languages Talk at JAOO (Now Goto Conference)

    Posted in Code,IronPython,IronRuby by Kristian Kristensen on the October 5th, 2010

    Today I held my talk on Iron Languages on .NET at JAOO (now Goto Conference). I think it went well, and the quick look I got at the evaluation sheet seems to agree with me. Microsoft taped my talk today, and it’ll be posted on Channel9 later. I’ll blog a link when it gets online.

    See the slides at Slideshare.

    Image of me presenting at JAOO courtesy of Niels Beck:

    If you have any questions please don’t hesitate to contact me.

  • If you like my writing you should subscribe to my RSS feed.