EJB lookup fails when the DNS changes using remote-outbound-connection on JBoss EAP 6

Solution Verified - Updated -

Issue

  • There is two JBoss EAP servers communicating with each other through remote EJB3, server-A and server-B.
    The server-A calls the remote EJB using remote-outbound-connection with the following configuration:
<outbound-connections>
                    <remote-outbound-connection name="ejb-outbound-connection" outbound-socket-binding-ref="serverA2serverB-socket" username="srv2srv" security-realm="ejb-security-realm">
                        <properties>
                            <property name="SSL_ENABLED" value="false"/>
                        </properties>
                    </remote-outbound-connection>
...
<outbound-socket-binding name="serverA2serverB-socket">
                <remote-destination host="server-B" port="4447"/>
            </outbound-socket-binding>

After a outage in the server-B we had to change the DNS entry to point to the backup server. This change should be transparent to the final user but it is not happening, the JBoss should be restarted to the new configuration take effect.

  • There is the following parameter configured: networkaddress.cache.ttl=30 in t he $JAVA_HOME/lib/security/java.security. configuration file.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content