Skip to content

Red-Hat-EMEA-SSA-AppDev-Team/quotes-camel-amqp-demo

Repository files navigation

Camel Quarkus AMQP 1.0 Demo

This project demonstrates how to interact with AMQP 1.0 using Red Hat AMQ Broker and Red Hat build of Apache Camel for Quarkus. It builds on the Quarkus AMQP quickstart, with both the quote producer and processor reimplemented using Camel for Quarkus.

Prerequisites

  • JDK 21 installed with JAVA_HOME configured appropriately
  • Apache Maven 3.9+
  • Docker or Podman

Start the application in dev mode

NOTE: When the quarkus-messaging-amqp extension is present and no AMQP broker is explicitly configured, Quarkus automatically enables AMQP Dev Service. This starts a temporary Apache ActiveMQ Artemis broker in development and test modes, streamlining setup and reducing manual configuration.

In a first terminal, run:

mvn -f quotes-producer quarkus:dev

In a second terminal, run:

mvn -f quotes-processor quarkus:dev -Dquarkus.http.port=8081

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

Deploy to OpenShift

Prerequisite

Instructions

  1. Login to the OpenShift cluster:
    oc login ...
  2. Switch to the target OpenShift project:
    oc project ...
  3. Deploy the Red Hat AMQ Broker v7.12+ instance:
    oc apply -f openshift/amq-broker.yaml
  4. Deploy the quotes-producer:
    mvn -f quotes-producer package -Dquarkus.openshift.deploy=true
  5. Deploy the quotes-processor:
    mvn -f quotes-processor package -Dquarkus.openshift.deploy=true
  6. Run the following command to get the frontend URL for the Quotes app:
    echo "http://`(oc get route quotes-producer -o jsonpath='{.spec.host}')`/quotes.html"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published