Streaming messages to AMQ in the cloud

The last thing we will do is deploy the Quarkus application to the cloud while using AMQ as a messaging broker. For this purpose, we will plug the ActiveMQ Docker image that we tested previously into OpenShift (more details about this image can be found on GitHub at https://github.com/vromero/activemq-artemis-docker).

First of all, create a new project named amq-demo:

oc new-project amq-demo

The output will confirm that the project namespace has been created in your virtual address:

Now using project "amq-demo" on server "https://api.fmarchioni-openshift.rh.com:6443"

Next, deploy the AMQ server to your project with the following command, which will set the username and password so that you can access ...

Get Hands-On Cloud-Native Applications with Java and Quarkus now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.