I've got a Fedora 38 running:
- ServiceA hosted in a dockerized JBoss EAP 7.3, listening on 0.0.0.0:8080
- ServiceB on a plain JBoss EAP 7.3, listening on 0.0.0.0:8085
The two services have to communicate with each other, but while ServiceB can successfully call ServiceA, when ServiceA calls ServiceB it always receives a java.net.ConnectException: Connection refused (Connection refused)
.
I can successfully call ServiceB through Postman.
I've enabled the broader possible public
interface in the standalone.xml of ServiceB, this is the relevant:
<interfaces>
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
</interfaces>
<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
<socket-binding name="ajp" port="${jboss.ajp.port:8009}"/>
<socket-binding name="http" port="${jboss.http.port:8085}"/>
<socket-binding name="https" port="${jboss.https.port:8443}"/>
<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9992}"/>
<socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9993}"/>
<socket-binding name="txn-recovery-environment" port="4712"/>
<socket-binding name="txn-status-manager" port="4713"/>
<outbound-socket-binding name="mail-smtp">
<remote-destination host="localhost" port="25"/>
</outbound-socket-binding>
</socket-binding-group>
Still ServiceA is failing to call ServiceB.
As a test also stopped firewalld
, but to no avail.
I'm clearly missing something, but I have run out of ideas. Suggestions?