https://github.com/guilhermecamposo/demo_eap-amq
Demonstration on how to connect an EAP application to an external Artemis broker.
https://github.com/guilhermecamposo/demo_eap-amq
amq eap java
Last synced: 4 months ago
JSON representation
Demonstration on how to connect an EAP application to an external Artemis broker.
- Host: GitHub
- URL: https://github.com/guilhermecamposo/demo_eap-amq
- Owner: GuilhermeCamposo
- Created: 2022-08-09T12:32:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-22T15:24:19.000Z (over 2 years ago)
- Last Synced: 2025-01-12T07:12:21.029Z (5 months ago)
- Topics: amq, eap, java
- Language: Java
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Demo EAP AMQ
Demonstration on how to deploy EAP using s2i and connect to an external AMQ instance.
== Deploying on OpenShift
=== Create the namespace used in the demo
----
oc new-project eap-amq
----=== Install the AMQ Broker operator
----
oc create -f openshift/operator-group.yml
oc create -f openshift/operator.yml
----=== Create the AMQ Broker operator resources
Once the operator is running you can provision the broker and the address.
----
oc create -f openshift/broker.yml
oc create -f openshift/address.yml
----=== Deploy the Application
----
oc process -f openshift/eap74-basic-s2i.yml \
-p EAP_IMAGE_NAME=jboss-eap74-openjdk11-openshift:7.4.0 \
-p EAP_RUNTIME_IMAGE_NAME=jboss-eap74-openjdk11-runtime-openshift:7.4.0 \
-p SOURCE_REPOSITORY_URL="https://github.com/GuilhermeCamposo/demo_eap-amq.git" \
-p SOURCE_REPOSITORY_REF="main" | oc create -f -
----=== Testing the Application
Paste the following result in your browser
----
EAP_HOST=$(oc get route eap-app -o jsonpath='{.spec.host}')
echo "http://$EAP_HOST/HelloWorld"
----Check the applications logs to verify if the MDB is consuming the messages.
== Deploying Local
* Run your EAP instance using the link:https://github.com/GuilhermeCamposo/demo_eap-amq/blob/main/configuration/standalone-openshift.xml[standalone-openshift.yml]. *Don't forget to substitute the host address for your AMQ Broker instance*.
* This Java project is using `wildfly-maven-plugin`. If you have a JBoss EAP running in the same host, you may use it to deploy the application to EAP:
----
mvn clean package wildfly:deploy -Plocal
----