I'm trying get the MQTT acceptor in Apache Artemis of the Wildfly 18 server to run.
The server is running, I can even send messages to a defined topic (though it has to be defined).
Initially I had to add the permission create-durable-queue="true"
to security, otherwise, as soon as I try to subscribe to that topic, the server would terminate the communication.
That said, I try to figure out how I can create on the JMS side, a subscription to a topic with wildcards, and I can find neither current documentation nor any other information about that.
To give some background to the use case:
I want to use the builtin Artemis server of Wildfly 18, and have a bunch of devices which publish to topics like /device/reader/SOMEID/temperature
and similar.
Within my EJBs I want to subscribe to the topic /device/#
and get all messages for that topic and all sub topics.
How can I achieve that?
Also when my entry in the config is
<jms-topic name="TestTopic" entries="java:/jms/topic/TestTopic" />
Why is the MQTT topic then jms/topic/TestTopic
? I'm not happy about using a prefix there.