I have prepared this repository github.com/tommaso-borgato/helloworld-mdb with all the instructions and the Java code you need:
- how-to install ActiveMQ Artemis broker
- how-to install and configure WildFly
- a complete Java application to send/receive messages
You probably know that WildFly uses ActiveMQ Artemis as its internal messaging broker: all the necessary configuration is pre-baked into WildFly profiles standalone-full.xml and standalone-full-ha.xml configuration files so you don't need to do much to use it, just start WildFly with one of those profiles e.g.
<WILDFLY_INSTALLATION_PATH>/bin/standalone.sh -c standalone-full.xml
What if you want to use an external ActiveMQ Artemis messaging broker instead?
Here is where the set-up get a little confusing ...
You can read docs.wildfly.org/24/Admin_Guide.html#Messag.. and try an adapt an example from git@github.com:wildfly/quickstart.git but it takes time .... that's why I have prepared the repository github.com/tommaso-borgato/helloworld-mdb!