Skip to content

ibm-cloud-architecture/eda-kc-voyage-ms-mq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarkus Qpid JMS Quickstart

This project illustrates how you can use the AMQP JMS client from Apache Qpid to interact with IBM MQ AMQP 1.0 servers in a Quarkus application using the Quarkus Qpid JMS extension.

Anatomy

The project is composed by the following:

  • VoyageRequestListener: schedules a consumer that reacts upon receiving a message on a specific queue of the IBM MQ Server
  • JMSQueueWriter: Creates an ad hoc connection to the IBM MQ Server and writes the output of the processed message on a specific queue (specified in an environment variable)
  • doman.model package: maps business logic assets to POJOs

Start the application

The application can be started using:

mvn quarkus:dev

Running in native

You can compile the application into a native binary using:

mvn clean package -Pnative

Or, if you dont have GraalVM installed, you can instead use Docker to build the native executable using:

mvn clean package -Pnative -Dquarkus.native.container-build=true

and then run with:

./target/jms-quickstart-1.0.0-SNAPSHOT-runner