Code Monkey home page Code Monkey logo

sju-amqp's Introduction

AMQP Demo for SESAR Joint Undertaking

This example demonstrates integration options for SESAR and FAA infrastructure using AMQP protocols. ActiveMQ supports AMQP as a client transport. It is configured in the activemq.xml file snippet shown below.

See readme in rabbitmq directory for build directions.

<transportConnectors>
...
<transportConnector name="amqp" uri="amqp://0.0.0.0:61617?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
...
</transportConnectors>

A simple example of consuming from such an ActiveMQ broker via AMQP is illustrated using the camel-amqp component.

    <route id="SWIM_AMQP_client">
        <from uri="amqp:queue:swim_adsb_amqp"/>
        <to uri="log:SWIM_AMQP_client?showHeaders=true" />
    </route>

While this demonstrates ActiveMQ supoprt for AMQP clients, it does not represent integrating FAA SWIM infrastructure with corresponding EuroControl infrastructure.

A more realistic example for the latter case would be using a Camel route to connect FAA ActiveMQ JMS destinations to AMQP exchanges. This connects FAA publishers to FAA SWIM infrastrcutre and then to EuroControl infrastructure which then delivers it to EuroControl consumers.

    <route id="SWIM_to_EuroControl">
        <from uri="activemq:queue:swim_adsb?concurrentConsumers=5" />
        <to uri="log:SWIM_to_EuroControl?showHeaders=true" />
        <to uri="rabbitmq://localhost:5672/adsb?routingKey=A&amp;username=tadmin&amp;password=tadmin"/>
    </route>

In the route above, messages published via SWIM to the swim_adsb topic via JMS are routed from ActiveMQ to RabbitMQ. A EuroControl client would typically connect to the EuroControl infrasructure (represented by RabbitMQ).

    <route id="EuroControl_AMQP_client">
        <from uri="rabbitmq://localhost:5672/junk?queue=adsbQ2&amp;routingKey=A&amp;autoDelete=false&amp;username=tadmin&amp;password=tadmin"/>
        <to uri="log:EuroControl_AMQP_client?showHeaders=true" />
    </route>

Conversely, ADSB messages published from EuroControl can be published to RabbitMQ and then routed to ActiveMQ.

    <route id="EuroControl_to_SWIM">
        <from uri="rabbitmq://localhost:5672/junk?queue=adsbQ1&amp;routingKey=A&amp;autoDelete=false&amp;username=tadmin&amp;password=tadmin"/>
        <to uri="log:EuroControl_to_SWIM?showHeaders=true" />
        <to uri="activemq:queue:eurocontrol_adsb" />
    </route>

sju-amqp's People

Stargazers

 avatar Don Jackson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.