activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1083770 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java
Date Mon, 21 Mar 2011 13:12:52 GMT
Author: gtully
Date: Mon Mar 21 13:12:52 2011
New Revision: 1083770

URL: http://svn.apache.org/viewvc?rev=1083770&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-3222 - fix test regression, xbean url parsing

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java?rev=1083770&r1=1083769&r2=1083770&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/xbean/XBeanBrokerFactory.java
Mon Mar 21 13:12:52 2011
@@ -62,9 +62,8 @@ public class XBeanBrokerFactory implemen
     public BrokerService createBroker(URI config) throws Exception {
 
         String uri = config.getSchemeSpecificPart();
-        Map<String,String> parameters = URISupport.parseQuery(uri);
-        if (!parameters.isEmpty()) {
-            IntrospectionSupport.setProperties(this, parameters);
+        if (uri.lastIndexOf('?') != -1) {
+            IntrospectionSupport.setProperties(this, URISupport.parseQuery(uri));
             uri = uri.substring(0, uri.lastIndexOf('?'));
         }
 



Mime
View raw message