GithubHelp home page GithubHelp logo

test-mq's Introduction

test-mq

This project run a spring boot app using gradle and listening to

  • rabbit mq on localhost running @ default port
  • with username=guest and password=guest

You can run rabbit mq using docker command.

docker run -d --hostname my-rabbit --name some-rabbit -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest -p 15672:15672 -p 5672:5672 rabbitmq:3-management

This command is running a docker rabbit mq container with name some-rabbit enabling management plugin, which is needed for rabbit mq dashboard + exposing default port on the local PC by mapping container ports to local ports.

Simple application having two listeners on the same exchange with conditional based headers.

Send a message on the 'hello-exchange' in the rabbit mq consoler with header 'type=first' - it will be picked up by first listeners.

Send a message on the 'hello-exchange' in the rabbit mq consoler with header 'type=second' - it will be picked up by second listeners.

Actual binding enabled for.

for seeing listener status and binding

http://localhost:8080/actuator/bindings

For stopping listener - it works only with exchange name

curl -d '{"state":"STOPPED"}' -H "Content-Type: application/json" -X POST http://localhost:8080/actuator/bindings/hello-exchange

But with binding name it does not work at the moment.

curl -d '{"state":"STOPPED"}' -H "Content-Type: application/json" -X POST http://localhost:8080/actuator/bindings/second_listener

test-mq's People

Contributors

kishorekkota avatar

Watchers

James Cloos 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.