[jboss-user] [JBoss Messaging] - Setting up Messaging Bridge to access Remote Clustered Server

krhiggins do-not-reply at jboss.com
Wed May 23 01:27:37 EDT 2012


krhiggins [https://community.jboss.org/people/krhiggins] created the discussion

"Setting up Messaging Bridge to access Remote Clustered Server"

To view the discussion, visit: https://community.jboss.org/message/737188#737188

--------------------------------------------------------------
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 ("/queue/MyQueueRemote" below), resulting in NameNotFoundException for the remote queue.  In fact, it appears it is attempting to locate "/queue/MyQueueRemote" on the LOCAL server, even though we have the provider url pointing to the remote host and HAJNDI port (java.naming.provider.url=jnp://233......:1100).

We created a standalone (command line) client that *can* do the 1100 HAJNDI lookup from the local to the remote OK and get a connection to the "/queue/MyQueueRemote", so we know it's running on the remote.  It's just when we try to connect using a Bridge that we keep getting NameNotFoundException.

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).

Any suggestions/assistance would be greatly appreciated.  Thanks in advance.


*Local jms-ds.xml File*


 <mbean code="org.jboss.jms.jndi.JMSProviderLoader"  name="jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider">
<depends>jboss.messaging.destination:service=Queue,name=MyQueueLocal</depends>  
<attribute name="ProviderName">LocalJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="FactoryRef">java:/ConnectionFactory</attribute>
<attribute name="QueueFactoryRef">java:/ConnectionFactory</attribute>
<attribute name="TopicFactoryRef">java:/ConnectionFactory</attribute>
</mbean>


<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider">
<attribute name="ProviderName">RemoteJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="FactoryRef">SSLUIL2ConnectionFactory</attribute>
<attribute name="QueueFactoryRef">SSLUIL2ConnectionFactory</attribute>
<attribute name="TopicFactoryRef">SSLUIL2ConnectionFactory</attribute>
<attribute name="Properties">
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://233......:1100
</attribute>
</mbean>


<mbean code="org.jboss.jms.server.bridge.BridgeService"
name="jboss.messaging:service=Bridge,name=MyQueueBridge"
xmbean-dd="xmdesc/Bridge-xmbean.xml">
<depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider</depends>
<depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
<attribute name="SourceDestinationLookup">/queue/MyQueueLocal</attribute>
<attribute name="TargetDestinationLookup">/queue/MyQueueRemote</attribute>
<attribute name="TargetUsername">remoteUsername</attribute>
<attribute name="TargetPassword">remotePassword</attribute>
<attribute name="QualityOfServiceMode">0</attribute>
<attribute name="MaxBatchSize">50</attribute>
<attribute name="MaxBatchTime">5000</attribute>
<attribute name="FailureRetryInterval">60000</attribute>
<attribute name="MaxRetries">-1</attribute>
<attribute name="AddMessageIDInHeader">false</attribute>
</mbean>


Local destinations-service.xml File

   <mbean code="org.jboss.jms.server.destination.QueueService"
      name="jboss.messaging.destination:service=Queue,name=MyQueueLocal"
      xmbean-dd="xmdesc/Queue-xmbean.xml">
      <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
      <depends>jboss.messaging:service=PostOffice</depends>
   </mbean> 



*
*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/737188#737188]

Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120523/610e0d39/attachment-0001.html 


More information about the jboss-user mailing list