<!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;">
    Setting up Messaging Bridge to access Remote Clustered Server
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/krhiggins">krhiggins</a> in <i>JBoss Messaging</i> - <a href="https://community.jboss.org/message/737188#737188">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Trying to setup bridge between JBos-5.2 (/production) and JBoss-4.2 (/all). We have jbossmq jar installed and everything works great when connecting from JBoss-5.2 to JBoss-4.2 on port 1099 for lookup.&#160; However, when JBoss-4.2 is on 1100, we are not able to find the remote queue ("<span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">/queue/MyQueueRemote</span>" below), resulting in <span style="font-family: 'courier new', courier;">NameNotFoundException</span> for the remote queue.&#160; In fact, it appears it is attempting to locate "<span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">/queue/MyQueueRemote</span>" on the LOCAL server, even though we have the provider url pointing to the remote host and HAJNDI port (<span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">java.naming.provider.url=jnp://233......:1100).</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We created a standalone (command line) client that <strong>can</strong> do the 1100 HAJNDI lookup from the local to the remote OK and get a connection to the<span style="font-family: 'courier new', courier;"> "/queue/MyQueueRemote"</span>, so we know it's running on the remote.&#160; It's just when we try to connect using a Bridge that we keep getting <span style="font-family: 'courier new', courier;">NameNotFoundException.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Again, the bridge works if hitting 1099 for the lookup on the remote.&#160; It's failing when trying to do HAJNDI on 1100 (and again, it appears when we do this, it's looking in the LOCAL server to locate it instead of the jndi provided remote host IP and 1100 port).</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any suggestions/assistance would be greatly appreciated.&#160; Thanks in advance.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="text-decoration: underline;"><strong style="font-family: 'courier new', courier;">Local jms-ds.xml File</strong></span></p><p><br clear="all"/></p><div style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;"> &lt;mbean code="org.jboss.jms.jndi.JMSProviderLoader"</span><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&#160; name="jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider"&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;depends&gt;jboss.messaging.destination:service=Queue,name=MyQueueLocal&lt;/depends&gt;&#160; </span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="ProviderName"&gt;<span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">LocalJMSProvider</span>&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="ProviderAdapterClass"&gt;org.jboss.jms.jndi.JNDIProviderAdapter&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="FactoryRef"&gt;java:/ConnectionFactory&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="QueueFactoryRef"&gt;java:/ConnectionFactory&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="TopicFactoryRef"&gt;java:/ConnectionFactory&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;/mbean&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;"><br/></span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;mbean code="org.jboss.jms.jndi.JMSProviderLoader"</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">name="jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider"&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="ProviderName"&gt;<span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">RemoteJMSProvider</span>&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="ProviderAdapterClass"&gt;org.jboss.jms.jndi.JNDIProviderAdapter&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="FactoryRef"&gt;SSLUIL2ConnectionFactory&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="QueueFactoryRef"&gt;SSLUIL2ConnectionFactory&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="TopicFactoryRef"&gt;SSLUIL2ConnectionFactory&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="Properties"&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">java.naming.provider.url=jnp://233......:1100</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;/mbean&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;"><br/></span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;mbean code="org.jboss.jms.server.bridge.BridgeService"</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">name="jboss.messaging:service=Bridge,name=MyQueueBridge"</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">xmbean-dd="xmdesc/Bridge-xmbean.xml"&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;depends optional-attribute-name="SourceProviderLoader"&gt;jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider&lt;/depends&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;depends optional-attribute-name="TargetProviderLoader"&gt;jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider&lt;/depends&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="SourceDestinationLookup"&gt;/queue/MyQueueLocal&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="TargetDestinationLookup"&gt;/queue/MyQueueRemote&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="TargetUsername"&gt;remoteUsername&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="TargetPassword"&gt;remotePassword&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="QualityOfServiceMode"&gt;0&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="MaxBatchSize"&gt;50&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="MaxBatchTime"&gt;5000&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="FailureRetryInterval"&gt;60000&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="MaxRetries"&gt;-1&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;attribute name="AddMessageIDInHeader"&gt;false&lt;/attribute&gt;</span></p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="font-family: 'courier new', courier;">&lt;/mbean&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="color: #222222; font-family: arial, sans-serif; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);"><span style="text-decoration: underline; font-family: 'courier new', courier;">Local destinations-service.xml File</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><div><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">&#160;&#160; &lt;mbean code="org.jboss.jms.server.destination.QueueService"</span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">&#160;&#160;&#160;&#160;&#160; name="jboss.messaging.destination:service=Queue,name=<span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">MyQueueLocal</span>"</span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">&#160;&#160;&#160;&#160;&#160; xmbean-dd="xmdesc/Queue-xmbean.xml"&gt;</span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">&#160;&#160;&#160;&#160;&#160; &lt;depends optional-attribute-name="ServerPeer"&gt;jboss.messaging:service=ServerPeer&lt;/depends&gt;</span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">&#160;&#160;&#160;&#160;&#160; &lt;depends&gt;jboss.messaging:service=PostOffice&lt;/depends&gt;</span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">&#160;&#160; &lt;/mbean&gt; </span></p><p><span style="font-family: 'courier new', courier;"><br/></span></p></div><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><strong style="font-family: arial, sans-serif;"><br/></strong></div></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/737188#737188">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>