Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-181

ISession::CreateDurableConsumer does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • ActiveMQ
    • None
    • ActiveMQ .NET 1.1.0 Release
      Windows XP
      .NET 3.5

    Description

      the following code results in a non durable subscription to the ActiveMQ topic with an ActiveMQ generated consumer ID. Using the normal 61616 port and connection works fine.

      using Apache.NMS;
      using Apache.NMS.ActiveMQ;
      using Apache.NMS.ActiveMQ.Commands;

      Uri connectURI = new Uri("activemq:tcp://host.com:61613?transport.wireformat=stomp");
      ConnectionFactory connectionFactory = new ConnectionFactory(connectURI);
      IConnection connection = connectionFactory.CreateConnection();
      connection.ClientId = "DurableClientId";
      connection.Start();
      connection.ExceptionListener += new ExceptionListener(OnException);
      ISession session = connection.CreateSession(AcknowledgementMode.DupsOkAcknowledge);
      ActiveMQTopic topic = new ActiveMQTopic("test.t");
      IMessageConsumer consumer = session.CreateDurableConsumer(topic, "DurableClientId", "2 > 1", false);
      consumer.Listener += new MessageListener(OnMessage);
      Console.WriteLine("Press any key to exit...");
      Console.ReadKey();

      Attachments

        Activity

          People

            tabish Timothy A. Bish
            alistairskye Alistair Young
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: