You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by lh...@apache.org on 2011/05/18 13:17:08 UTC
svn commit: r1124193 -
/servicemix/components/trunk/engines/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/component/WSNComponent.java
Author: lhein
Date: Wed May 18 11:17:08 2011
New Revision: 1124193
URL: http://svn.apache.org/viewvc?rev=1124193&view=rev
Log:
SM-1206 - ClientFactory JNDI bind fails in non-standalone ServiceMix installs
Modified:
servicemix/components/trunk/engines/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/component/WSNComponent.java
Modified: servicemix/components/trunk/engines/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/component/WSNComponent.java
URL: http://svn.apache.org/viewvc/servicemix/components/trunk/engines/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/component/WSNComponent.java?rev=1124193&r1=1124192&r2=1124193&view=diff
==============================================================================
--- servicemix/components/trunk/engines/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/component/WSNComponent.java (original)
+++ servicemix/components/trunk/engines/servicemix-wsn2005/src/main/java/org/apache/servicemix/wsn/component/WSNComponent.java Wed May 18 11:17:08 2011
@@ -45,6 +45,8 @@ import java.util.*;
public class WSNComponent extends DefaultComponent {
+ private static final String EMBEDDED_AMQ_BROKER_NAME = "smx_embedded";
+
private WSDLFlattener flattener;
private Map<QName, Document> descriptions;
@@ -153,9 +155,9 @@ public class WSNComponent extends Defaul
this.brokerService = new BrokerService();
this.brokerService.setUseJmx(false);
this.brokerService.setPersistent(false);
- this.brokerService.setBrokerName(configuration.getBrokerName());
+ this.brokerService.setBrokerName(EMBEDDED_AMQ_BROKER_NAME);
this.brokerService.start();
- this.connectionFactory = new ActiveMQConnectionFactory("vm://" + configuration.getBrokerName());
+ this.connectionFactory = new ActiveMQConnectionFactory("vm://" + EMBEDDED_AMQ_BROKER_NAME);
}
}
if (connectionFactory != null) {