activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <>
Subject Re: networkConnectors causing NPE
Date Thu, 09 Nov 2006 06:36:22 GMT
On 11/8/06, robottaway <> wrote:
> Thanks taking the spaces out of the <brokerName/> element did fix that
> problem. Now I am having a problem with an extra broker starting up, LOL!
> All I do to get this behavior is enable the 'networkConnector' element.
> Using the exact same config I posted earlier.

After removing the spaces from the broker name, I did not see this
behavior at all using the configuration you provided when testing
against ActiveMQ 4.0.2. What version of ActiveMQ are you using?

Out of curiosity I begain testing against the ActiveMQ trunk and I'm
still not seeing this behavior. To test against the trunk, I've made a
few minor changes as shown below:


    <!-- Allows us to use system properties as variables in this
configuration file -->
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

    <!-- <broker useJmx="true"> -->
    <!-- <broker brokerName="localhost" useJmx="true"
xmlns=""> -->
    <broker brokerName="Robs_AMQ_broker" useJmx="true"
     <!-- <brokerName>Robs_AMQ_broker</brokerName> -->
        <!--  Use the following to set the broker memory limit (in bytes)
            <usageManager id="memory-manager" limit="1048576"/>

        <!-- Use the following to configure how ActiveMQ is exposed in JMX -->
            <managementContext connectorPort="1098"

        <!-- In ActiveMQ 4, you can setup destination policies -->

                <policyEntry topic="FOO.>">


            <!--  <journaledJDBC journalLogFiles="5"
dataDirectory="${activemq.home}/activemq-data"/> -->
            <!-- To use a different datasource, use th following syntax : -->
            <journaledJDBC journalLogFiles="5"

            <transportConnector name="tcp" uri="tcp://localhost:61605"
            <transportConnector name="stomp" uri="stomp://localhost:61606"/>

          <!-- by default just auto discover the other brokers -->
          <networkConnector name="default" uri="multicast://default"/>
          <networkConnector name="host1 and host2"
uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>


  <bean id="derby-ds" class="org.apache.derby.jdbc.EmbeddedDataSource">
    <property name="databaseName" value="derbydb"/>
    <property name="createDatabase" value="create"/>


Give this configuration a whirl and let's see what kind of results you get.

perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"

Apache Geronimo -
Apache ActiveMQ -
Apache ServiceMix -
Castor -

View raw message