Skip to content

starwalker/epicIntegr-eventcenter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BMIC Gateway event center monitoring

This project illustrates how you can interact with RabbitMQ/ActiveMQ using MicroProfile Reactive Messaging. The complete instructions are available on https://quarkus.io/guides/rabbitmq.

Start the application in dev mode

In a first terminal, run:

./mvnw quarkus:add-extension -Dextensions='rest-client-reactive-jackson'
./mvnw quarkus:add-extension -Dextensions='smallrye-jwt,smallrye-jwt-build'
./mvnw quarkus:add-extension -Dextensions='hibernate-validator'
> mvn -f rabbitmq-quickstart-producer quarkus:dev

In a second terminal, run:

> mvn -f rabbitmq-quickstart-processor quarkus:dev

Then, open your browser to http://localhost:8080/quotes.html, and click on the "Request Quote" button.

Build the application in JVM mode

To build the applications, run:

> mvn -f rabbitmq-quickstart-producer package
> mvn -f rabbitmq-quickstart-processor package

Because we are running in prod mode, we need to provide an RabbitMQ broker. The docker-compose.yml file starts the broker and your application.

Start the broker and the applications using:

> docker compose up --build

Then, open your browser to http://localhost:8080/quotes.html, and click on the "Request Quote" button.

Build the application in native mode

To build the applications into native executables, run:

> mvn -f rabbitmq-quickstart-producer package -Pnative  -Dquarkus.native.container-build=true
> mvn -f rabbitmq-quickstart-processor package -Pnative -Dquarkus.native.container-build=true

The -Dquarkus.native.container-build=true instructs Quarkus to build Linux 64bits native executables, who can run inside containers.

Then, start the system using:

> export QUARKUS_MODE=native
> docker compose up

Then, open your browser to http://localhost:8080/quotes.html, and click on the "Request Quote" button.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages