activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric-AWL <>
Subject Re: "Embedded broker", "network of brokers" and "temporary queues"
Date Wed, 23 Jan 2008 08:43:07 GMT

The hostname of the first server (client process) is ytsvmx01s, the second
one (server process) is ytsvmx02s

here is an extract of my "vm connection"

       javax.jms.Connection connection;
       BrokerService broker;


            // create a new intial context, which loads from
            context = new javax.naming.InitialContext();

            // lookup the connection factory
            broker = BrokerFactory.createBroker(new

            // lookup the connection factory
            qcf =
            // qcf = new

            connection = qcf.createConnection("admin", "admin");

here is an extract of my file activemq.xml

  <broker brokerName="${hostname}" useJmx="true"
xmlns="" persistent="false"> 
       <transportConnector name="tcp" uri="tcp://localhost:61616"
       <transportConnector name="vm" uri="vm://${hostname}"/>  

      <networkConnector name="pool"
conduitSubscriptions="false" dynamicOnly="true" /> 

here is my file (for ytsvmx02s, the same with vm://ytsvmx01s
for the other server)

java.naming.factory.initial =

# use the following property to configure the default connector
java.naming.provider.url = vm://ytsvmx02s

# register some queues in JNDI using the form
# queue.[jndiName] = [physicalName]
queue.Queue1 = Queue1
queue.Queue2 = Queue2
queue.Queue3 = Queue3

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message