Tin*_*ter 5 activemq-classic docker wildfly
我在 Docker 容器中运行 Wildfly。在 Wildfly 中,messaging-activemq 子系统处于活动状态。子系统和扩展默认值取自standalone-full.xml 文件。
启动wildfly后,显示以下输出
[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.
Run Code Online (Sandbox Code Playgroud)
eeb79399d447 是 docker 容器 ID。我的 java 客户端也无法连接到 jms。连接时出现以下错误。
AMQ214016: Failed to create netty connection: java.net.UnknownHostException: eeb79399d447
Run Code Online (Sandbox Code Playgroud)
当我在本地工作站(docker 外部)上启动 wildfly 时,问题不会发生,我可以连接到 jms 并发送消息。
Wil*_*l T -1
您需要编辑standalone-full.xml以应对NAT后面的jms,并且当您运行docker容器时,传递jms客户端可以用来连接的ip和端口,这是在Dockers中运行docker的机器的ip默认配置
| 归档时间: |
|
| 查看次数: |
2599 次 |
| 最近记录: |