Uploaded image for project: 'Apache QPID Interoperability Test Suite'
  1. Apache QPID Interoperability Test Suite
  2. QPIDIT-105

Getting started with AMQP.Net Lite in Fedora

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1.0
    • None
    • .Net Lite Shim
    • None
    • Fedora 25
      mono 4.4.2

    Description

      Introduction

      With package mono version 4.4.2 installed on Fedora the system is capable of compiling and running the AMQP.Net Lite shim tests. The remaining part of the puzzle is acquiring a pre-compiled AMQP.Net Lite executable library. Here's one solution.

      This note is not a feature request so much as it is a blog about one way to do it.

      Fetch AMQP.Net Lite 2.0.0 from NuGet

      Saved as file get-lite.sh in the top level directory it may be dot sourced to pick up the definition of AMQPNETLITE_LIB_DIR.

      #!/bin/bash
      #
      # file: get-lite.sh
      #
      litedir=amqpnetlite-lib-dir
      
      
      if [[ ! -d $litedir ]]; then
      
          mkdir $litedir
          cd    $litedir
      
          wget https://www.nuget.org/api/v2/package/AMQPNetLite/2.0.0
          mv    2.0.0 amqpnetlite.2.0.0.nupkg
          unzip       amqpnetlite.2.0.0.nupkg
      
          cd ..
      fi
      
      export AMQPNETLITE_LIB_DIR=`pwd`/$litedir/lib/net45
      
      

      .h4 Build qpid-interop-test including AMQP.Net Lite

      Include the Lite library definition in the CMake command line

      cmake -DAMQPNETLITE_LIB_DIR=${AMQPNETLITE_LIB_DIR} ...
      

      Expect confirmation that the Lite library was picked up by CMake

      -- BUILD_AMQPNETLITE = ON
      

      Run test with the AMQP.Net Lite shims

      Define the library location and specify the shims.

      export AMQPNETLITE_LIB_DIR=${QPID_INTEROP_TEST_HOME}/amqpnetlite-lib-dir/lib/net45
      
      ./src/python/qpid_interop_test/amqp_types_test.py \
          --include-shim ProtonCpp \
          --include-shim ProtonPython \
          --include-shim AmqpNetLite 
      

      Further integration

      This should get you started with the AMQP.Net Lite library. I've tried a few things to auto-detect the library and use it if present. None of those attempts is yet worthy.

      Attachments

        Activity

          People

            kpvdr Kim van der Riet
            chug Charles E. Rolke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: