Hi All,

I am quite new to ActiveMQ and am trying to figure out a solution to
the following.

I have an embedded broker and a remote broker.
>From my code I do the following to create a session on the embedded
broker and to create a queue there.

            factory = new ActiveMQConnectionFactory("tcp://localhost:61617");
            connection = factory.createConnection();
            connection.start();
            session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
            destination = session.createQueue("SAMPLEQUEUE");

I want a queue with the same name to be created on the remote broker
when I do that and any messages I send to that queue on the embedded
broker to go to the remote broker.

I have looked at the the documentation on JMS to JMS Bridge mentioned
at http://activemq.apache.org/jms-to-jms-bridge.html but it seems that
I have to know the queue name beforehand in order to create a
OutboundQueueBridge.

Is there any way that I can  dynamically create the queue on the
remote broker when I call the createConnection as I have mentioned
above? Is there any configuration in the JMS to JMS bridge which
enables that?
-- 
Thanks,
Pubudu

Reply via email to