[ 
https://issues.apache.org/jira/browse/KARAF-3516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bob Paulin updated KARAF-3516:
------------------------------
    Description: 
Was following the following document:
http://karaf.apache.org/manual/latest/users-guide/jms.html

I used the create command:
{code}
jms:create -t activemq -u tcp://localhost:61616 test
{code}
This created the following element in the deploy/connectionfactory-test.xml
{code}
<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>
{code}
The command
I used the create command:
{code}
jms:create -t activemq --url tcp://localhost:61616 test
{code}
works as expected:
{code}
<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>
{code}
This was done on Karaf 3.0.3.  I have not tested other versions.  

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

I used the create command:
{code}
jms:create -t activemq -u tcp://localhost:61616 test
{code}
This created the following element in the deploy/connectionfactory-test.xml
{code}
<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>
{code}
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.  


> JMS: Create command -u option changes username and url
> ------------------------------------------------------
>
>                 Key: KARAF-3516
>                 URL: https://issues.apache.org/jira/browse/KARAF-3516
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.3
>         Environment: Windows 7
>            Reporter: Bob Paulin
>
> Was following the following document:
> http://karaf.apache.org/manual/latest/users-guide/jms.html
> I used the create command:
> {code}
> jms:create -t activemq -u tcp://localhost:61616 test
> {code}
> This created the following element in the deploy/connectionfactory-test.xml
> {code}
> <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>
> {code}
> The command
> I used the create command:
> {code}
> jms:create -t activemq --url tcp://localhost:61616 test
> {code}
> works as expected:
> {code}
> <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>
> {code}
> This was done on Karaf 3.0.3.  I have not tested other versions.  



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to