Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1370

consumer command, does not offer a ClientID command line arg

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • Broker
    • None

    Description

      using

      ./artemis consumer --destination topic://myexample --durable
      

      it gives me

      javax.jms.IllegalStateException: Cannot create durable subscription - client ID has not been set
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createConsumer(ActiveMQSession.java:746)
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:484)
      	at org.apache.activemq.artemis.jms.client.ActiveMQSession.createDurableSubscriber(ActiveMQSession.java:458)
      	at org.apache.activemq.artemis.cli.commands.messages.ConsumerThread.consume(ConsumerThread.java:140)
      	at org.apache.activemq.artemis.cli.commands.messages.ConsumerThread.run(ConsumerThread.java:64)
      

      There currently seems no command line option available to set a client id when running artemis consumer.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pgfox Pat Fox
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: