ActiveMQ within Wildfly on a Docker container gives: Invalid “host” value “0.0.0.0” detected
I have Wildfly running in a Docker container.
Within Wildfly the messaging-activemq subsystem is active.
The subsystem and extension defaults are taken from the standalone-full.xml file.
After starting wildfly, following output is displayed
[org.apache.activemq.artemis.jms.server] (ServerService Thread Pool -- 64) AMQ121005: Invalid "host" value "0.0.0.0" detected for "http-connector" connector. Switching to "eeb79399d447". If this new address is incorrect please manually configure the connector to use the proper one.
The eeb79399d447 is the docker container id.
It’s also impossible to connect to jms from my java client. While connecting it gives the following error.
AMQ214016: Failed to create netty connection: java.net.UnknownHostException: eeb79399d447
When I start wildfly on my local workstation (outside docker) the problem does not occur and I can connect to jms and send my messages.
One Solution collect form web for “ActiveMQ within Wildfly on a Docker container gives: Invalid “host” value “0.0.0.0” detected”
You need to edit the standalone-full.xml to cope with jms behind NAT and when you run the docker container pass though the ip and port that your jms client can use to connect, which is the ip of the machine running docker in Dockers’ default config