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