Author: ningjiang
Date: Sun Sep 16 09:04:08 2012
New Revision: 1385235
URL: http://svn.apache.org/viewvc?rev=1385235&view=rev
Log:
Merged revisions 1385231 via svnmerge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r1385231 | ningjiang | 2012-09-16 16:48:43 +0800 (Sun, 16 Sep 2012) | 1 line
CXF-4506 Added the support to set the userName and password on WSN service
........
Modified:
cxf/branches/2.6.x-fixes/ (props changed)
cxf/branches/2.6.x-fixes/services/wsn/wsn-core/src/main/java/org/apache/cxf/wsn/services/Service.java
cxf/branches/2.6.x-fixes/services/wsn/wsn-osgi/src/main/resources/OSGI-INF/blueprint/cxf-wsn.xml
Propchange: cxf/branches/2.6.x-fixes/
------------------------------------------------------------------------------
svn:mergeinfo = /cxf/trunk:1385231
Propchange: cxf/branches/2.6.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
cxf/branches/2.6.x-fixes/services/wsn/wsn-core/src/main/java/org/apache/cxf/wsn/services/Service.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/services/wsn/wsn-core/src/main/java/org/apache/cxf/wsn/services/Service.java?rev=1385235&r1=1385234&r2=1385235&view=diff
==============================================================================
---
cxf/branches/2.6.x-fixes/services/wsn/wsn-core/src/main/java/org/apache/cxf/wsn/services/Service.java
(original)
+++
cxf/branches/2.6.x-fixes/services/wsn/wsn-core/src/main/java/org/apache/cxf/wsn/services/Service.java
Sun Sep 16 09:04:08 2012
@@ -33,6 +33,9 @@ import org.apache.cxf.wsn.AbstractNotifi
public class Service {
String rootURL = "http://0.0.0.0:9000/wsn";
String activeMqUrl = "vm:(broker:(tcp://localhost:6000)?persistent=false)";
+ String userName;
+ String password;
+
boolean jmxEnable = true;
AbstractCreatePullPoint createPullPointServer;
@@ -42,6 +45,10 @@ public class Service {
for (int x = 0; x < args.length; x++) {
if ("-brokerUrl".equals(args[x])) {
activeMqUrl = args[++x];
+ } else if ("-userName".equals(args[x])) {
+ userName = args[++x];
+ } else if ("-password".equals(args[x])) {
+ password = args[++x];
} else if ("-rootUrl".equals(args[x])) {
rootURL = args[++x];
} else if ("-jmxEnable".equals(args[x])) {
@@ -60,7 +67,7 @@ public class Service {
}
public void start() throws Exception {
- ActiveMQConnectionFactory activemq = new
ActiveMQConnectionFactory(activeMqUrl);
+ ActiveMQConnectionFactory activemq = new
ActiveMQConnectionFactory(userName, password, activeMqUrl);
notificationBrokerServer = new
JaxwsNotificationBroker("WSNotificationBroker", activemq);
notificationBrokerServer.setAddress(rootURL + "/NotificationBroker");
Modified:
cxf/branches/2.6.x-fixes/services/wsn/wsn-osgi/src/main/resources/OSGI-INF/blueprint/cxf-wsn.xml
URL:
http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/services/wsn/wsn-osgi/src/main/resources/OSGI-INF/blueprint/cxf-wsn.xml?rev=1385235&r1=1385234&r2=1385235&view=diff
==============================================================================
---
cxf/branches/2.6.x-fixes/services/wsn/wsn-osgi/src/main/resources/OSGI-INF/blueprint/cxf-wsn.xml
(original)
+++
cxf/branches/2.6.x-fixes/services/wsn/wsn-osgi/src/main/resources/OSGI-INF/blueprint/cxf-wsn.xml
Sun Sep 16 09:04:08 2012
@@ -31,7 +31,9 @@
<!-- ActiveMQ connection factory -->
<bean id="activemq" class="org.apache.activemq.ActiveMQConnectionFactory">
- <argument value="${cxf.wsn.activemq}" />
+ <property name="brokerURL" value="${cxf.wsn.activemq}" />
+ <property name="userName" value="${cxf.wsn.activemq.username}" />
+ <property name="password" value="${cxf.wsn.activemq.password}" />
</bean>
<bean id="JaxwsEndpointManager"