I am running an Embedded  network of brokers on ActiveMQ 4.0.1. I am
attempting to turn off sending messages to the local broker connection. I've
tried setting the pubSubNoLocal setting to "true" on the JmsTemplate and
messages are still sent locally. Is there anything further that needs to
done? Here are my XML snippets:

<bean id="jmsFactory"
class="org.apache.activemq.pool.PooledConnectionFactory" lazy-init="true">
        <property name="connectionFactory">
                <bean class="org.apache.activemq.ActiveMQConnectionFactory"
depends-on="broker">
                        <property name="brokerURL"              
value="tcp://localhost:61616" />
                        <property name="useAsyncSend"   value="true" />
                </bean>
        </property>
</bean>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
        <property name="pubSubDomain"                   value="true" />
        <property name="pubSubNoLocal"                  value="true" />
        <property name="defaultDestinationName" value="envision.message.topic" 
/>
        <property name="explicitQosEnabled"             value="true" />
        <property name="deliveryMode"                   value="2" />
        <property name="connectionFactory"              ref="jmsFactory" />
</bean>

<beans>
        <broker name="envisionBroker" persistent="true" useJmx="false"
xmlns="http://activemq.org/config/1.0";>
                <transportConnectors>
                        <transportConnector uri="tcp://localhost:61616" />
                </transportConnectors>

                < networkConnectors>
                        <networkConnector uri="static:(tcp://TONYB64:61616)" 
failover="true" />
                </networkConnectors>

                <persistenceAdapter>
                        <!-- memoryPersistenceAdapter / -->
                        <journaledJDBC journalLogFiles="5" 
dataDirectory="./activemq-data"
dataSource="#activemq-ds" />
                </persistenceAdapter>
        </broker>

        <bean id="activemq-ds" class="org.apache.commons.dbcp.BasicDataSource"
destroy-method="close">
                <property name="driverClassName"        
value="net.sourceforge.jtds.jdbc.Driver"/>
                <property name="url"                            
value="jdbc:jtds:sqlserver:/tonyb64:1433:AMQDB"/>
                <property name="username"                               
value="admin" />
                <property name="password"                               
value="andy" />
                <property name="poolPreparedStatements" value="true" />
        </bean>
</beans>

-- 
View this message in context: 
http://www.nabble.com/pubSubNoLocal-setting-seems-to-be-ignored-tf2517258.html#a7021082
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to