mirror of https://github.com/apache/activemq.git
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:
parent
1bc55049e6
commit
5215fc21d6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue