ActiveMQ Host defaults to Container ID

21 views
Skip to first unread message

Holger

unread,
Aug 13, 2025, 10:28:39 AMAug 13
to WildFly
I am deploying a Java App to WF27 running in docker via compose.
Currently I'm using an edited standalone-full.xml with -b 0.0.0.0
Deployment works and the client can connect to it, but the http-connector uses the container ID, so any attempt to 
topicConnection = tcf.createTopicConnection();
results in 

org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector createConnection
ERROR: AMQ214016: Failed to create netty connection
java.net.UnknownHostException: 56b656a0bdd5


56b656a0bdd5 being the container ID.
The only thing addressing this directly is https://conciso.de/zugriff-auf-jms-queues-in-einem-docker-container/ (German) saying to assign the public IP of the wildfly container at startup instead of 0.0.0.0
Others suggest to put the container ID into the hosts file. Neither of which work for me.
As always: any pointers are appreciated and the likelihood is high i misunderstood something.

Holger

unread,
Aug 18, 2025, 4:22:14 AMAug 18
to WildFly
In case anyone comes across this later:
For it was solved by adding 61616 and 5445 to the exposed ports in docker.
Reply all
Reply to author
Forward
0 new messages