<!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;">
    ConnectionFactory returns invalid URL which causes MessagingNetworkFailureException
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/dewthefifth">Duane Zamrok</a> in <i>JBoss Messaging</i> - <a href="https://community.jboss.org/message/714389#714389">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello, and thank you in advance for any assistence you might offer.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to connect two JBoss servers, executing on separate machines, to one another using JMS through JBoss Messaging. Due to network topography and proxying requirements, the each machine is referenced differently than the machine's hostname. I'll elaborate. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Network one contains a machine which we will call Jboss01.</p><p>Network two contains two machines, Jboss02 and Jboss03. </p><p>Network one and Network two communicate through a shared domain controller which we'll call DC01.</p><p>When Jboss01 attempts to access Jboss02 then DC01 directs Jboss01 to JbossProxy which will proxy traffic on port 443 to port 8443.</p><p>Jboss01 is incapable of reaching Jboss02 directly</p><p>When Jboss02 attempts to access Jboss03 then DC01 directs Jboss02 to JbossProxy which will proxy traffic on port 443 to port 8443.</p><p>Jboss02 is capable of reaching Jboss03 directly by asking specifically for Jboss03-vm which DC01 understands to be a direct link</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Jboss01&gt;hostname will return Jboss01</p><p>Jboss02&gt;hostname will return Jboss02</p><p>Jboss03&gt;hostname will return Jboss03</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to send JMS messages from Jboss02 to Jboss03, but the org.jboss.jms.server.connectionfactory.ConnectionFactory returned from JNDI attempts to connect to Jboss03 instead of Jboss03-vm. This causes the connection to be routed through the proxy, which does not service the JMS port, and results in the MessageNetworkingFailureException mentioned in the topic. My JNDI connection is through Jboss03-vm, and I have set several properties (bind.addres, java.rmi.server.hostname) to Jboss03-vm to facilitate the direct connection that I require, but I cannot figure out how to configure the org.jboss.remoting.transport.Connector to use Jboss03-vm instead of Jboss03.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks again for any help you might offer.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 12pt;"><strong>Environment</strong></span></p><p>I am currently working within a customer controlled environment, which limits some of my options for upgrades and solutions.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>JbossAS</strong></p><p>jboss-eap-4.3</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>JbossMessaging</strong></p><p>jboss.messaging.jmsVersion=1.1</p><p>jboss.messaging.jmsMajorVersion=1</p><p>jboss.messaging.jmsMinorVersion=1</p><p>jboss.messaging.jmsProviderName=JBoss Messaging</p><p>jboss.messaging.providerVersion=1.4.0.SP3-CP08.patch01</p><p>jboss.messaging.providerMajorVersion=1</p><p>jboss.messaging.providerMinorVersion=4</p><p>jboss.messaging.providerIncrementingVersion=32</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>JbossRemoting</strong></p><p>Name: JBossRemoting</p><p>Specification-Title: JBossRemoting</p><p>Implementation-Title: JBossRemoting</p><p>Specification-Vendor: JBoss Inc.</p><p>Specification-Version: 2.2.3</p><p><span>Implementation-Vendor-Id: </span><a class="jive-link-external-small" href="http://www.jboss.org" target="_blank">http://www.jboss.org</a></p><p>Implementation-Version: 2.2.3</p><p>Implementation-Vendor: JBoss Inc.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Properties</strong></p><p>bind.address=intellex-vm</p><p>jboss.bind.address=0.0.0.0</p><p>java.rmi.server.hostname=intellex-vm</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/714389#714389">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


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

</div>

</body>
</html>