activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Bonghi <>
Subject pubSubNoLocal setting seems to be ignored
Date Thu, 26 Oct 2006 22:17:56 GMT

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"
			<property name="brokerURL" 		value="tcp://localhost:61616" />
			<property name="useAsyncSend"	value="true" />
<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" />

	<broker name="envisionBroker" persistent="true" useJmx="false"
			<transportConnector uri="tcp://localhost:61616" />

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

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

	<bean id="activemq-ds" class="org.apache.commons.dbcp.BasicDataSource"
		<property name="driverClassName" 	
		<property name="url" 				
		<property name="username" 				value="admin" />
		<property name="password" 				value="andy" />
		<property name="poolPreparedStatements" value="true" />

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

View raw message