Thanks for all help, I did try to read the bridge example.
But it is a local jms to remote jms example, what I need is remote to remote
example.
I don't know how to configure for the remote inbound connection.
I try to configure as follows:

</broker>
        ....
        <jmsBridgeConnectors>
             <jmsQueueConnector name="Jms-bridge"
jndiOutboundTemplate="#remoteJndi"
                outboundQueueConnectionFactoryName="ConnectionFactory"
                jndiLocalTemplate="#sourceJndi">
                <inboundQueueBridges>
                  <inboundQueueBridge inboundQueueName="queue/testQueue"/>
                </inboundQueueBridges>
                <outboundQueueBridges>
                  <outboundQueueBridge outboundQueueName="queue/testQueue"/>
                </outboundQueueBridges>
              </jmsQueueConnector>
         </jmsBridgeConnectors>

    </broker>


    <bean id="remoteJndi" class="org.springframework.jndi.JndiTemplate">
        <property name="environment">
                <props>
                        <prop
key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
                        <prop
key="java.naming.provider.url">jnp://172.19.7.123:1099</prop>
                </props>
        </property>
    </bean>

    <bean id="sourceJndi" class="org.springframework.jndi.JndiTemplate">
        <property name="environment">
                <props>
                        <prop
key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
                        <prop
key="java.naming.provider.url">jnp://172.19.7.121:1099</prop>
                </props>
        </property>
    </bean>


However, it seems doesn't work. Any problem with this?




Joe Fernandez wrote:
> 
> Yes, check out  http://activemq.apache.org/jms-to-jms-bridge.html
> 
> You can also implement a JMS-to-JMS bride using Camel, which would be my
> preferred approach. 
> 
> http://camel.apache.org/jms.html
> 
> Joe
> http://www.ttmsolutions.com
> 
> 
> jeff yung wrote:
>> 
>> Thanks for your reply.
>> Well, networks-of-brokers is used for connecting activemq brokers.
>> In my case, I need to connect 2 jboss messaging services on 2 jboss
>> servers with activemq.
>> Is that possible? 
>> 
>> 
>> 
>> Joe Fernandez wrote:
>>> 
>>> Yes, you use what's referred to as a 'forwarding bridge' or 'network
>>> connector' between the two brokers. 
>>> 
>>> http://activemq.apache.org/networks-of-brokers.html
>>> 
>>> Joe
>>> http://www.ttmsolutions.com
>>> 
>>> 
>>> jeff yung wrote:
>>>> 
>>>> Is it possible to make use of activemq bridge to forward the messages
>>>> from a remote queue on serverA to another remote queue on ServerB?
>>>> If yes, how should I configure the activemq? Thanks.
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/activemq-bridge-tp26277790p26312708.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to