What settings shall be configured in order to be able to send JMS messages to a given topic in Wildfly 17 and receive them via JMS?
After looking in internet I found the following sources:
Remote JMS Client for Wildfly 8
Not able to send message to a Topic configured on WildFly 9
Integrate ActiveMQ with Wildfly
However, none of the above mentioned links solved my problem completely
1.) A special Application user shall be created in Wildfly 17 using the command
which belongs to the group "guests", and on behalf of whom the JMS Message Producer will create JMS messages. Details about how this user shall be created are given here:
use add-user.sh/add-user.cmd to create a new user in Wildfly
2.) Wilffly 17 must be started using
not just
3.) Message Topic shall be created in Wildfly17, where the messages shall be sent to. This shall be possible either by running the script
jboss-cli.bat / jboss-cli.bat
with the following arguments:or by directly inserting the following entry at line 537 of standalone-full.xml:
just before the existing line:
4.) When a message producer that is a component residing inside Wildfly 17 (such as a servlet) does obtain a JMS Connection from WildFly 17, the following code shall be used:
where
and