Fixing regression due to chagnes in AMQ-4718. You now have to prefix option that need to passed to the nested urls by prefixing those options with 'nested.'

This commit is contained in:
Hiram Chirino 2013-09-18 10:13:59 -04:00
parent 1bc55049e6
commit 5215fc21d6
2 changed files with 3 additions and 3 deletions

View File

@ -70,12 +70,12 @@ public class FailoverTransportFactory extends TransportFactory {
public FailoverTransport createTransport(Map<String, String> parameters) throws IOException {
FailoverTransport transport = new FailoverTransport();
Map<String, Object> nestedExtraQueryOptions = IntrospectionSupport.extractProperties(parameters, "nested.");
IntrospectionSupport.setProperties(transport, parameters);
try {
transport.setNestedExtraQueryOptions(URISupport.createQueryString(parameters));
transport.setNestedExtraQueryOptions(URISupport.createQueryString(nestedExtraQueryOptions));
} catch (URISyntaxException e) {
}
parameters.clear();
return transport;
}

View File

@ -488,7 +488,7 @@ public class URISupport {
* @return a URI formatted query string.
* @throws URISyntaxException
*/
public static String createQueryString(Map<String, String> options) throws URISyntaxException {
public static String createQueryString(Map<String, ? extends Object> options) throws URISyntaxException {
try {
if (options.size() > 0) {
StringBuffer rc = new StringBuffer();