Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3516

JMS: Create command -u option changes username and url

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.0.4, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Windows 7

      Description

      Was following the following document:
      http://karaf.apache.org/manual/latest/users-guide/jms.html

      I used the create command:

      jms:create -t activemq -u tcp://localhost:61616 test
      

      This created the following element in the deploy/connectionfactory-test.xml

      <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
              <property name="brokerURL" value="tcp://localhost:61616" />
              <property name="userName" value="tcp://localhost:61616" />
              <property name="password" value="karaf" />
          </bean>
      

      The command
      I used the create command:

      jms:create -t activemq --url tcp://localhost:61616 test
      

      works as expected:

      <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
              <property name="brokerURL" value="tcp://localhost:61616" />
              <property name="userName" value="karaf" />
              <property name="password" value="karaf" />
          </bean>
      

      This was done on Karaf 3.0.3. I have not tested other versions.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              bobpaulin Bob Paulin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: