activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: ActiveMQ MessageListener can't differentiate between command and text message
Date Wed, 07 Aug 2013 22:25:48 GMT
Show how you create your consumer.
Your consumer shouldn't receive these messages unless you're subscribed to
advisory topics.


On Wed, Aug 7, 2013 at 2:08 PM, sumit.wattal <sumit.wattal24@gmail.com>wrote:

> Hi,
>
> I have started to migrate from activemq 5.6 single broker to activemq 5.8
> network of brokers. The new solution has one broker pumping data to a
> distributed queue that resides on another broker which has a message
> listener set up as under. I had an existing code which basically sets a
> message listener for asynchronus reception.
>
> Something like
>
> messageConsumer.setMessageListener(new MessageListener() {
>                 // ideally, we free this up as quickly as possible
>                 @Override
>                 public void onMessage(javax.jms.Message received) {
>                  if(received != null)
>                  {
>                   ...............
>                  }
>              }
> });
>
> when i had a single broker solution the listener only received text
> messages. Now when I have migrated to network of brokers I am seeing other
> command structures as well (CONSUMER_INFO and PRODUCER_INFO). I am not sure
> why is this happening in a broker network or what should i do to filter
> these.
>
> Regards,
>
> Sumit
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-MessageListener-can-t-differentiate-between-command-and-text-message-tp4670173.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message