Skip to content

rediverson/amq-online-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

amq-online-example

Overview

Sample AMQ-Online install and a Fuse(camel) application on OpenShift 4.

Note
For official instructions please see the AMQ Online and Fuse documentation.

AMQ Online installation

The commands below will setup everything needed for our AMQ online sample.

Note
Be sure to wait between steps until the previous step completes
oc new-project amq-online-infra
oc apply -f install/bundles/amq-online
oc apply -f install/components/example-plans
oc apply -f install/components/example-roles
oc apply -f install/components/example-authservices/standard-authservice.yaml
oc apply -f examples/myspace.yaml
oc apply -f examples/myqueue.yaml
oc apply -f examples/user1.yaml

Install the fuse component

The fuse component will be used to produce and consume messages from the queue created in the steps above.

  • Find the service address for your address space using:

    oc describe AddressSpace/myspace | more

    Note what the Service Host: value is

  • Replace the host portion of the AMQP_REMOTE_URI property in the file application.properties with the service host found in the above instruction.

  • Build and deploy the fuse component

    cd fuse
    oc import-image fuse-java-openshift:1.5 --from=registry.access.redhat.com/fuse7/fuse-java-openshift:1.5 --confirm
    mvn clean -DskipTests fabric8:deploy -Popenshift -Dfabric8.generator.fromMode=istag -Dfabric8.generator.from=amq-online-infra/fuse-java-openshift:1.5
    mvn clean -DskipTests fabric8:resource fabric8:apply -Popenshift

About

Simple example of amq online and fuse

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors