You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ashwin Karpe (JIRA)" <ji...@apache.org> on 2012/09/17 17:51:07 UTC

[jira] [Comment Edited] (CXF-4506) support to set the username and password on the wsn service configuration

    [ https://issues.apache.org/jira/browse/CXF-4506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457094#comment-13457094 ] 

Ashwin Karpe edited comment on CXF-4506 at 9/18/12 2:50 AM:
------------------------------------------------------------

Hi Willem,

There is a small glitch in the fix made to cxf-wsn.xml. 

The default property values for cxf.wsn.activemq.username and cxf.wsn.activemq.password have not been set in the cm:propertyplaceholder. This cause a NullPointerException to be thrown during deployment.

Currently:
----------
    <cm:property-placeholder persistent-id="org.apache.cxf.wsn" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="cxf.wsn.activemq" value="vm:localhost"/>
            <cm:property name="cxf.wsn.rootUrl" value="http://0.0.0.0:8182" />
            <cm:property name="cxf.wsn.context" value="/wsn" />
        </cm:default-properties>
    </cm:property-placeholder>

Needs to be:
    <cm:property-placeholder persistent-id="org.apache.cxf.wsn" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="cxf.wsn.activemq" value="vm:localhost"/>
            <cm:property name="cxf.wsn.rootUrl" value="http://0.0.0.0:8182" />
            <cm:property name="cxf.wsn.context" value="/wsn" />
            <cm:property name="cxf.wsn.activemq.username" value="user" />
            <cm:property name="cxf.wsn.activemq.password" value="password" />
        </cm:default-properties>
    </cm:property-placeholder>

Cheers,

Ashwin...
                
      was (Author: akarpe):
    Hi Willem,

There is a small glitch in the fix made to cxf-wsn.xml. 

The default property values for cxf.wsn.activemq.username and cxf.wsn.activemq.password have not been set in the cm:propertyplaceholder. This cause a NullPointerException to be thrown during deployment.

Currently:
----------
    <cm:property-placeholder persistent-id="org.apache.cxf.wsn" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="cxf.wsn.activemq" value="vm:localhost"/>
            <cm:property name="cxf.wsn.rootUrl" value="http://0.0.0.0:8182" />
            <cm:property name="cxf.wsn.context" value="/wsn" />
        </cm:default-properties>
    </cm:property-placeholder>

Needs to be:
    <cm:property-placeholder persistent-id="org.apache.cxf.wsn" update-strategy="reload">
        <cm:default-properties>
            <cm:property name="cxf.wsn.activemq" value="vm:localhost"/>
            <cm:property name="cxf.wsn.rootUrl" value="http://0.0.0.0:8182" />
            <cm:property name="cxf.wsn.context" value="/wsn" />
            <cm:property name="cxf.wsn.activemq.username" value="" />
            <cm:property name="cxf.wsn.activemq.password" value="" />
        </cm:default-properties>
    </cm:property-placeholder>

Cheers,

Ashwin...
                  
> support to set the username and password on the wsn service configuration
> -------------------------------------------------------------------------
>
>                 Key: CXF-4506
>                 URL: https://issues.apache.org/jira/browse/CXF-4506
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Willem Jiang
>            Assignee: Willem Jiang
>             Fix For: 2.5.6, 2.6.3, 2.7.0
>
>
> Current CXF WS-Notifcation-Broker doesn't support to setup the username and password on the ActiveMQConnectionFactory. We need to add this kind of support for the user who cares about the security of the ActiveMQ broker.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira