rovigattibetacom/java21-artemis-mq

By rovigattibetacom

Updated about 2 months ago

Java 21 and Artemis Mq simple and plain message broker

Image
Message queues
0

349

rovigattibetacom/java21-artemis-mq repository overview

Java 21 and Artemis Mq

An Alpine based image that relies on Java 21 and Artemis Mq to provide a simple and plain message broker

Usage

Once the image is pulled from the Docker Hub, it's possible to launch it with Dockerfile or with Docker Compose by the setup of the entrypoint.

Broker implementation

This command defines the message broker implementation
"/home/artemio/apache-artemis-2.53.0/bin/artemis" create /home/artemio/broker --name brokerArtemio --user admin --password <admin Password> --role admins --silent --require-login --http-host 0.0.0.0 --no-autocreate --verbose;

--no-autocreate doesn't allow to create new queue/topic forcing to use the ones defined in the broker.xml files of the broker implementation.

Broker implementation abstract setup

This command
mv /home/artemio/supporto/broker.xml /home/artemio/broker/etc ;
overrides the broker.xml files of the broker implementation following the abstract setup I created this image for
-coda01 anycast queue creation
-topicArtemio multicast topic creation
-allowing guests type user to read/write queue (anycast) and topic (multicast)

Custom queues and topics

To define custom queues or topics refers to this options of the broker instance creation (section above)
--queues <queue name> --addresses <topic name>

Guests type user definition and starting Artemis

This command will define a new guests type user then starting artemis "/home/artemio/broker/bin/artemis-service" start; "/home/artemio/broker/bin/artemis" user add --user-command-user <guests user name> --user-command-password <guests user password> --role guests --user admin --password <admin Password>; "/home/artemio/broker/bin/artemis-service" stop; /home/artemio/broker/bin/artemis" run;

Out of the box homage

I chose artemio as linux user name also to pay homage to the main character of "Il Ragazzo di Campagna" italian milestone movie called Artemio
https://it.wikipedia.org/wiki/Il_ragazzo_di_campagna

Tag summary

Content type

Image

Digest

sha256:4d4238608

Size

111.5 MB

Last updated

about 2 months ago

docker pull rovigattibetacom/java21-artemis-mq