activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Understanding basic config
Date Wed, 28 Sep 2011 21:05:54 GMT
I have this config. Trying to understand few things:

1. what's the different between uri="tcp://localhost:0" and
brokerURL="vm://localhost" ?
2. In point 1 why are both not tcp?
3. what is :0? That doesn't look like a port to me. Is this specifial
for embedded broker?



 <amq:broker useJmx="false" persistent="false">
    <amq:transportConnectors>
      <amq:transportConnector uri="tcp://localhost:0" />
    </amq:transportConnectors>
  </amq:broker>

   <!--  ActiveMQ destinations to use  -->
  <amq:queue id="destination"
physicalName="org.apache.activemq.spring.Test.spring.embedded"/>

  <!-- JMS ConnectionFactory to use, configuring the embedded broker
using XML -->
  <amq:connectionFactory id="jmsFactory" brokerURL="vm://localhost"/>

Mime
View raw message