https://issues.apache.org/jira/browse/AMQ-3222 - fix test regression, xbean url parsing

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1083770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2011-03-21 13:12:52 +00:00
parent 400990f98a
commit e44ccf7f08
1 changed files with 2 additions and 3 deletions

View File

@ -62,9 +62,8 @@ public class XBeanBrokerFactory implements BrokerFactoryHandler {
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('?'));
}