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

consumer command, does not offer a ClientID command line arg

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0
    • Component/s: Broker
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: