<!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.  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.  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;"> </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.  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;"> </p><p>Again, the bridge works if hitting 1099 for the lookup on the remote.  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;"> </p><p>Any suggestions/assistance would be greatly appreciated.  Thanks in advance.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> <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;">  name="jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider"></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;"><depends>jboss.messaging.destination:service=Queue,name=MyQueueLocal</depends>  </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;"><attribute name="ProviderName"><span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">LocalJMSProvider</span></attribute></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;"><attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute></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;"><attribute name="FactoryRef">java:/ConnectionFactory</attribute></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;"><attribute name="QueueFactoryRef">java:/ConnectionFactory</attribute></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;"><attribute name="TopicFactoryRef">java:/ConnectionFactory</attribute></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;"></mbean></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;"><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"></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;"><attribute name="ProviderName"><span style="color: #222222; font-family: 'courier new', courier; text-align: -webkit-auto; background-color: rgba(255, 255, 255, 0.917969);">RemoteJMSProvider</span></attribute></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;"><attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute></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;"><attribute name="FactoryRef">SSLUIL2ConnectionFactory</attribute></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;"><attribute name="QueueFactoryRef">SSLUIL2ConnectionFactory</attribute></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;"><attribute name="TopicFactoryRef">SSLUIL2ConnectionFactory</attribute></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;"><attribute name="Properties"></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;"></attribute></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;"></mbean></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;"><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"></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;"><depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider</depends></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;"><depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends></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;"><attribute name="SourceDestinationLookup">/queue/MyQueueLocal</attribute></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;"><attribute name="TargetDestinationLookup">/queue/MyQueueRemote</attribute></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;"><attribute name="TargetUsername">remoteUsername</attribute></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;"><attribute name="TargetPassword">remotePassword</attribute></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;"><attribute name="QualityOfServiceMode">0</attribute></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;"><attribute name="MaxBatchSize">50</attribute></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;"><attribute name="MaxBatchTime">5000</attribute></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;"><attribute name="FailureRetryInterval">60000</attribute></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;"><attribute name="MaxRetries">-1</attribute></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;"><attribute name="AddMessageIDInHeader">false</attribute></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;"></mbean></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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;"> </p><div><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">   <mbean code="org.jboss.jms.server.destination.QueueService"</span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">      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;">      xmbean-dd="xmdesc/Queue-xmbean.xml"></span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends></span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">      <depends>jboss.messaging:service=PostOffice</depends></span></p><p style="font-family: arial, sans-serif;"><span style="font-family: 'courier new', courier;">   </mbean> </span></p><p><span style="font-family: 'courier new', courier;"><br/></span></p></div><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </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>