diff --git a/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java b/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java index 2a858eaa1c..cdaccafcc9 100644 --- a/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java +++ b/activemq-core/src/main/java/org/apache/activemq/network/DemandForwardingBridgeSupport.java @@ -282,8 +282,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge { brokerInfo.setDuplexConnection(configuration.isDuplex()); // set our properties Properties props = new Properties(); - IntrospectionSupport.getProperties(this, props, null); - props.setProperty("networkTTL", String.valueOf(configuration.getNetworkTTL())); + IntrospectionSupport.getProperties(configuration, props, null); String str = MarshallingSupport.propertiesToString(props); brokerInfo.setNetworkProperties(str); remoteBroker.oneway(brokerInfo); diff --git a/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java b/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java index 9d5a8d47a3..092dba7d6a 100755 --- a/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java +++ b/activemq-core/src/main/java/org/apache/activemq/util/IntrospectionSupport.java @@ -59,7 +59,7 @@ public final class IntrospectionSupport { String name = method.getName(); Class type = method.getReturnType(); Class params[] = method.getParameterTypes(); - if (name.startsWith("get") && params.length == 0 && type != null && isSettableType(type)) { + if ((name.startsWith("is") || name.startsWith("get")) && params.length == 0 && type != null && isSettableType(type)) { try { @@ -72,8 +72,13 @@ public final class IntrospectionSupport { if (strValue == null) { continue; } - - name = name.substring(3, 4).toLowerCase() + name.substring(4); + if (name.startsWith("get")) { + name = name.substring(3, 4).toLowerCase() + + name.substring(4); + } else { + name = name.substring(2, 3).toLowerCase() + + name.substring(3); + } props.put(optionPrefix + name, strValue); rc = true;