You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by schumi <ni...@gmail.com> on 2011/03/09 14:27:59 UTC

Wild Cards

Hi,

I actually want to get the details of producers and consumers for all the
topics except the Advisory Topics.
I have used the following code:

ActiveMQDestination
destination=(ActiveMQDestination)session.createTopic(">");
Destination
advisoryDestination=AdvisorySupport.getProducerAdvisoryTopic(destination);
MessageConsumer consumer=session.createConsumer(advisoryDestination);
consumer.setMessageListener(new ProducerAdvisoryListener());
			
Destination
consumerAdvisory=AdvisorySupport.getConsumerAdvisoryTopic(destination);
MessageConsumer consumer1=session.createConsumer(consumerAdvisory);
consumer1.setMessageListener(new ConsumerAdvisoryListener());

In this code, if I use ">" , it gives me the details of producers and
consumers for all the Topics including the Advisory topics. 
Can you please suggest me some work around here so that I can exclude the
'ActiveMQ.Advisory.>' topics?
Please note that the name of the other topics is absolutely random and hence
I cannot make use of Wild Cards to fetch details of those topics.

Regards,
Schumi


--
View this message in context: http://activemq.2283324.n4.nabble.com/Wild-Cards-tp3343581p3343581.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: advisorySupport="false"

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
But how does it look like with queue ??

Advisory keeps only numer of messages or full 
information(body,destination...) ?? Becasue it is not clear for me.


Regards,
Adam


> Hi,
>
> advisory messages are non-persistent topic messages and as such they are not
> kept in the broker's memory. If there are consumers on the topic they'll be
> immediately dispatched to them. If not they'll be discarded.
>
> Regards
> -- Dejan Bosanac ----------------- FuseSource - The experts in open 
> source integration and messaging. Email: dejanb@fusesource.com Web: 
> http://fusesource.com Twitter: http://twitter.com/dejanb ActiveMQ in 
> Action - http://www.manning.com/snyder/ Blog - 
> http://www.nighttale.net On Wed, Mar 23, 2011 at 1:58 PM, Adam 
> Kaminiecki <ad...@dgt.com.pl> wrote:
>> >  or maybe from another way...
>> >  how large advisory.topic..queues etc can be?
>> >
>> >  because I have many consumers and producers on topic (200-300 m per secon),
>> >  few on queue.
>> >
>> >  for example how many message it can handle (ActiveMQ.Advisory.Expired) ??
>> >  how much memory it could take?
>> >  I'm worry about memory on server and I dont want crush server becasue
>> >  advisory store message....
>> >
>> >  Can annybody explain it to me please?
>> >
>> >  Regards,
>> >  Adam
>> >
>> >
>> >  W dniu 2011-03-23 13:34, Adam Kaminiecki pisze:
>> >
>> >    I Don't exactly understand how to pass this problem.
>>> >>  I just want to delete advisory and still have cluster of brokers which
>>> >>  will forward message to another brokers. Can you give me some example how to
>>> >>  do it??
>>> >>
>>> >>  W dniu 2011-03-23 12:59, Dejan Bosanac pisze:
>>> >>
>>>> >>>  Hi,
>>>> >>>
>>>> >>>  advisory messages are used to pass consumer demands over the networks. So
>>>> >>>  you either need to use them or to specify demands statically. See this
>>>> >>>  thread for more info
>>>> >>>
>>>> >>>
>>>> >>>  http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-td3386261.html#a3397734
>>>> >>>
>>>> >>>  Regards
>>>> >>>
>>> >>

Re: advisorySupport="false"

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

advisory messages are non-persistent topic messages and as such they are not
kept in the broker's memory. If there are consumers on the topic they'll be
immediately dispatched to them. If not they'll be discarded.

Regards
-- 
Dejan Bosanac
-----------------
FuseSource - The experts in open source integration and messaging.
Email: dejanb@fusesource.com
Web: http://fusesource.com
Twitter:  http://twitter.com/dejanb
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Mar 23, 2011 at 1:58 PM, Adam Kaminiecki <ad...@dgt.com.pl> wrote:

> or maybe from another way...
> how large advisory.topic..queues etc can be?
>
> because I have many consumers and producers on topic (200-300 m per secon),
> few on queue.
>
> for example how many message it can handle (ActiveMQ.Advisory.Expired) ??
> how much memory it could take?
> I'm worry about memory on server and I dont want crush server becasue
> advisory store message....
>
> Can annybody explain it to me please?
>
> Regards,
> Adam
>
>
> W dniu 2011-03-23 13:34, Adam Kaminiecki pisze:
>
>  I Don't exactly understand how to pass this problem.
>> I just want to delete advisory and still have cluster of brokers which
>> will forward message to another brokers. Can you give me some example how to
>> do it??
>>
>> W dniu 2011-03-23 12:59, Dejan Bosanac pisze:
>>
>>> Hi,
>>>
>>> advisory messages are used to pass consumer demands over the networks. So
>>> you either need to use them or to specify demands statically. See this
>>> thread for more info
>>>
>>>
>>> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-td3386261.html#a3397734
>>>
>>> Regards
>>>
>>

Re: advisorySupport="false"

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
or maybe from another way...
how large advisory.topic..queues etc can be?

because I have many consumers and producers on topic (200-300 m per 
secon), few on queue.

for example how many message it can handle (ActiveMQ.Advisory.Expired) 
?? how much memory it could take?
I'm worry about memory on server and I dont want crush server becasue 
advisory store message....

Can annybody explain it to me please?

Regards,
Adam


W dniu 2011-03-23 13:34, Adam Kaminiecki pisze:
> I Don't exactly understand how to pass this problem.
> I just want to delete advisory and still have cluster of brokers which 
> will forward message to another brokers. Can you give me some example 
> how to do it??
>
> W dniu 2011-03-23 12:59, Dejan Bosanac pisze:
>> Hi,
>>
>> advisory messages are used to pass consumer demands over the 
>> networks. So
>> you either need to use them or to specify demands statically. See this
>> thread for more info
>>
>> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-td3386261.html#a3397734 
>>
>>
>> Regards

Re: advisorySupport="false"

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
I Don't exactly understand how to pass this problem.
I just want to delete advisory and still have cluster of brokers which 
will forward message to another brokers. Can you give me some example 
how to do it??

W dniu 2011-03-23 12:59, Dejan Bosanac pisze:
> Hi,
>
> advisory messages are used to pass consumer demands over the networks. So
> you either need to use them or to specify demands statically. See this
> thread for more info
>
> http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-td3386261.html#a3397734
>
> Regards

Re: advisorySupport="false"

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

advisory messages are used to pass consumer demands over the networks. So
you either need to use them or to specify demands statically. See this
thread for more info

http://activemq.2283324.n4.nabble.com/network-of-broker-stop-forwarding-messages-without-advisorySupport-enabled-td3386261.html#a3397734

Regards
-- 
Dejan Bosanac
-----------------
FuseSource - The experts in open source integration and messaging.
Email: dejanb@fusesource.com
Web: http://fusesource.com
Twitter:  http://twitter.com/dejanb
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Mar 23, 2011 at 12:51 PM, Adam Kaminiecki <ad...@dgt.com.pl> wrote:

> Hi,
>
>
> Can anybody explain me why when I set
> advisorySupport="false"
>
> message between brokers are not send??
>
> I'm asking because I dont need advisory topics and queues (I use client in
> C#) but when I disable it HA cluster between brokers dont work..
>
> Regards,
> Adam
>
>

advisorySupport="false"

Posted by Adam Kaminiecki <ad...@dgt.com.pl>.
Hi,


Can anybody explain me why when I set
advisorySupport="false"

message between brokers are not send??

I'm asking because I dont need advisory topics and queues (I use client 
in C#) but when I disable it HA cluster between brokers dont work..

Regards,
Adam