Skip to content

raif-ahmed/fuse-amq-amqps-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot, Camel and AMQ Online QuickStart

This quickstart shows how to connect a Spring-Boot application to an AMQ Online SaaS message broker and use JMS messaging between two Camel routes using OpenShift.

Setting up the OpenShift environment

It is assumed that:

To setup the test project you can run the following script.

Tip
If the project where the amq-online operator installed is not amq-online-infra project, then modify the name in the script (you need to have admin access to the project)
$ src/main/resources/openshift/create_demo_app.sh
Important
After you run this command please take note of last two lines in output

For example output

oc get routes console -o 'jsonpath={.spec.host}' -n amq-online-infra
console-amq-online-infra.apps.cluster-91e5.sandbox671.opentlc.com (1)

oc get addressspace demo-space -o 'jsonpath={.status.endpointStatuses[?(@.name=="messaging")].externalHost}' -n amqp-demo
messaging-6c9efcc-amq-online-infra.apps.cluster-91e5.sandbox671.opentlc.com (2)
  1. Console Url, which you will use to see the queue, topics, connections,etc

  2. Messaging Endpoint which you will use to connect your application

Running the example on Local Machine (Spring Boot)

  1. Modify the amqp.serviceName key in application.properties to the value you of Messaging Endpoint

  2. Then the following command will run the application

mvn spring-boot:run -Dspring.profiles.active=dev

Running the example in OpenShift

  1. The following command will package your app and run it on OpenShift:

    mvn fabric8:deploy -P openshift
  2. To list all the running pods:

    oc get pods

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published