Johan Stenberg created ARTEMIS-2031:
---------------------------------------

             Summary: Message Filter not displayed for ANYCAST Queues
                 Key: ARTEMIS-2031
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2031
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker, Web Console
    Affects Versions: 2.6.2
            Reporter: Johan Stenberg
         Attachments: AdminUI_Queues.png

The Admin UI only shows the message filter for multicast but not for unicast 
addresses.

To reproduce, create a new broker instance and try the following code:
{code:java}
import java.util.concurrent.TimeUnit;
import javax.jms.*;
import org.apache.qpid.jms.*;

/*
 <dependency>
    <groupId>org.apache.qpid</groupId>
    <artifactId>qpid-jms-client</artifactId>
    <version>0.35.0</version>
 </dependency>
 */
public class Test {

   public static void main(final String[] args) throws Exception {

      final JmsQueue queue = new JmsQueue("myQueueWithFilter");
      final JmsTopic topic = new JmsTopic("myTopicWithFilter");

      try ( //
            final Connection conn = new 
JmsConnectionFactory("amqp://localhost").createConnection("user", "user"); //
            final Session sess = conn.createSession(); //
            final MessageConsumer queueConsumer = sess.createConsumer(queue, 
"type='FOO'"); //
            final MessageConsumer topicConsumer = sess.createConsumer(topic, 
"type='FOO'"); //
      ) {
         conn.start();

         Thread.sleep(TimeUnit.SECONDS.toMillis(60));
      }
   }
}
{code}
The admin UI then shows both addresses but only for the MULTICAST queue it 
displays the message filter.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to