<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Need multiple connections for remote standalone client to clustered server
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/lkuettner">Lars Kuettner</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/753881#753881">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hi there,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'd like to setup multiple <strong>initial</strong> connections (EJB receivers) for a remote standalone client to a <strong>clustered</strong> server. I expected to achieve this easily with the following configuration in jboss-ejb-client.properties:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false

remote.connections=default,other

remote.connection.default.host=192.168.0.1
remote.connection.default.port=4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false

remote.connection.other.host=192.168.0.2
remote.connection.other.port=4447
remote.connection.other.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This works fine for a non-clustered multiple-server setup but not if the servers are clustered like this:</p><pre class="jive-pre"><code class="jive-code jive-java">./standalone.sh -c standalone-ha.xml -Djboss.node.name=Server1 -b=192.168.0.1 -bmanagement=192.168.0.1
./standalone.sh -c standalone-ha.xml -Djboss.node.name=Server2 -b=192.168.0.2 -bmanagement=192.168.0.2
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The application hangs while attempting to lookup an EJB. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The log up to this point is as follows:</p><pre class="jive-pre"><code class="jive-code">15.08.2012 20:45:15 org.jboss.ejb.client.EJBClient &lt;clinit&gt;
INFO: JBoss EJB Client version 1.0.10.Final
15.08.2012 20:45:17 org.xnio.Xnio &lt;clinit&gt;
INFO: XNIO Version 3.0.3.GA
15.08.2012 20:45:17 org.xnio.nio.NioXnio &lt;clinit&gt;
INFO: XNIO NIO Implementation Version 3.0.3.GA
15.08.2012 20:45:17 org.jboss.remoting3.EndpointImpl &lt;clinit&gt;
INFO: JBoss Remoting version 3.2.7.GA
15.08.2012 20:45:18 org.jboss.ejb.client.remoting.VersionReceiver handleMessage
INFO: EJBCLIENT000017: Received server version 1 and marshalling strategies [river]
15.08.2012 20:45:18 org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver associate
INFO: EJBCLIENT000013: Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@4824de7d, receiver=Remoting connection EJB receiver [connection=Remoting connection &lt;31f9338f&gt;,channel=jboss.ejb,nodename=Server1]} on channel Channel ID c98a47cb (outbound) of Remoting connection 348dcd5d to /192.168.0.1:4447
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I get the same behaviour with both the latest nightly AS 7 build as well as the current EAP 6.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any idea what could be wrong with my configuration - or is this a bug?</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/753881#753881">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>