rxue / full-stack-kata

Full stask code kata
Apache License 2.0
0 stars 0 forks source link

Error: Failed to send message to remote jms queue #2

Closed rxue closed 2 years ago

rxue commented 2 years ago

https://stackoverflow.com/questions/70476404/failed-to-send-message-to-remote-jms-queue

rxue commented 2 years ago

The cause of error was mentioned in the Note in Chapter 8. CONFIGURING THE MESSAGING TRANSPORTS > 8.3 Connectors

If the bind address for the public interface is set to 0.0.0.0, you will see the following warning in the log when you start the JBoss EAP server:

AMQ121005: Invalid "host" value "0.0.0.0" detected for "connector" connector. Switching to <HOST_NAME>. If this new address is incorrect please manually configure the connector to use the proper one.

This is because a remote connector cannot connect to a server using the 0.0.0.0 address and the messaging-activemq subsystem tries to replace it with the server’s host name. The administrator should configure the remote connector to use a different interface address for the socket binding.