You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Christian Posta <ch...@gmail.com> on 2014/03/01 01:09:52 UTC

Re: Disable advisory for ActiveMQ broker

No. You have to disable advisory support, and the
jms.watchTopicAdvisories=false needs to go on the client (or you can
setWatchTopicAdvisories(false) on the connectionFactory). You may also
want to disable creation of advisory topics via ActiveMQ authorization
security  to enforce this policy (although if your clients don't use
the above config, they will fail to authorize.. which is what it
sounds like you want)

On Wed, Feb 26, 2014 at 12:35 AM, khandelwalanuj
<kh...@gmail.com> wrote:
> Hi,
>
> I tried setting connection URI in broker config as:
> *     <amq:transportConnectors>
>             <amq:transportConnector name="amqBrokerTcpTransport"
>
> uri="tcp://0.0.0.0:61616?jms.watchTopicAdvisories=false" />
>       </amq:transportConnectors>
> *
>
> but still it is creating advisories for tmp topics. But when I changed
> configuration on client side and make "watchTopicAdvisories=false" in client
> consiguration, I can avoid tmp advisories.
>
> Is there a way to disable tmp topic advisories by making changes in broker
> config only ? Because I cannot touch clients source code.
>
> Thanks,
> Anuj
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Disable-advisory-for-ActiveMQ-broker-tp4677863p4678360.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta

Re: Disable advisory for ActiveMQ broker

Posted by Richard Kettelerij <ri...@gmail.com>.
Hi,

You'll need to adjust your broker url. Adding advisorySupport="false" is
not enough to completely disable advisory messages. You'll need to change
the broker url in your ConnectionFactory to: tcp://localhost:61616
?jms.watchTopicAdvisories=false

Regards,
Richard
http://richardlog.com


On Sat, Mar 22, 2014 at 1:12 PM, json <jh...@gmail.com> wrote:

> Hi.
> Sorry. i need help please
>
> I am using ActiveMQ and Spring JMS template.
> follow your steps, but do not work my setting.
> show it my conf.
> <amq:broker id="broker" useJmx="false" persistent="false"<br>
>                 advisorySupport="false"><br>
>                 <amq:transportConnectors><br>
>                         <amq:transportConnector uri="tcp://localhost:0"
> /><br>
>                 </amq:transportConnectors><br>
>         </amq:broker><br>
>
>         <amq:queue id="destination" physicalName="myQueue" /><br>
>
>         <amq:topic id="destination1" physicalName="myTopic" /><br>
>
>         <br>
>         <amq:connectionFactory id="jmsFactory"
> brokerURL="tcp://localhost:61616"
> /><br>
>
>         <bean id="jmsTemplateTarea"
> class="org.springframework.jms.core.JmsTemplate"><br>
>                 <property name="connectionFactory"><br>
>                         <br>
>                         <bean
> class="org.springframework.jms.connection.SingleConnectionFactory"><br>
>                                 <property
> name="targetConnectionFactory"><br>
>                                         <ref bean="jmsFactory" /><br>
>                                 </property><br>
>                         </bean><br>
>                 </property><br>
>                 <property name="defaultDestination" ref="destination1"
> /><br>
>         </bean><br>
>
> this is setting not disable message Advisory default  from ActiveMQ <br>
> * ActiveMQ.Advisory.Connection<br>
> * ActiveMQ.Advisory.Consumer.*<br>
> * ActiveMQ.Advisory.Producer.*<br>
> *ActiveMQ.Advisory.<br>
>
> However this send message without problem but no disable message Advisory
> with the opcion<br>
> *<amq:broker id="broker" useJmx="false" persistent="false"<br>
>                 advisorySupport="false"><br>
>                 <amq:transportConnectors><br>
>                         <amq:transportConnector uri="tcp://localhost:0"
> /><br>
>                 </amq:transportConnectors><br>
>         </amq:broker><br>*
> could you please provide me maybe other solution
>
>
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Disable-advisory-for-ActiveMQ-broker-tp4677863p4679447.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Disable advisory for ActiveMQ broker

Posted by json <jh...@gmail.com>.
Hi.
Sorry. i need help please

I am using ActiveMQ and Spring JMS template.
follow your steps, but do not work my setting.
show it my conf.
<amq:broker id="broker" useJmx="false" persistent="false"<br>
		advisorySupport="false"><br>
		<amq:transportConnectors><br>
			<amq:transportConnector uri="tcp://localhost:0" /><br>
		</amq:transportConnectors><br>
	</amq:broker><br>

	<amq:queue id="destination" physicalName="myQueue" /><br>

	<amq:topic id="destination1" physicalName="myTopic" /><br>

	<br>
	<amq:connectionFactory id="jmsFactory" brokerURL="tcp://localhost:61616"
/><br>

	<bean id="jmsTemplateTarea"
class="org.springframework.jms.core.JmsTemplate"><br>
		<property name="connectionFactory"><br>
			<br>
			<bean
class="org.springframework.jms.connection.SingleConnectionFactory"><br>
				<property name="targetConnectionFactory"><br>
					<ref bean="jmsFactory" /><br>
				</property><br>
			</bean><br>
		</property><br>
		<property name="defaultDestination" ref="destination1" /><br>
	</bean><br>

this is setting not disable message Advisory default  from ActiveMQ <br>
* ActiveMQ.Advisory.Connection<br>
* ActiveMQ.Advisory.Consumer.*<br>
* ActiveMQ.Advisory.Producer.*<br>
*ActiveMQ.Advisory.<br>

However this send message without problem but no disable message Advisory
with the opcion<br>
*<amq:broker id="broker" useJmx="false" persistent="false"<br>
		advisorySupport="false"><br>
		<amq:transportConnectors><br>
			<amq:transportConnector uri="tcp://localhost:0" /><br>
		</amq:transportConnectors><br>
	</amq:broker><br>*
could you please provide me maybe other solution







--
View this message in context: http://activemq.2283324.n4.nabble.com/Disable-advisory-for-ActiveMQ-broker-tp4677863p4679447.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.