mirror of https://github.com/apache/activemq.git
fixed bug where setting the clientID on the MBean ObjectName could break a JMX name
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@356520 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
262a5596d9
commit
507bb1bbab
|
@ -115,7 +115,9 @@ public class ManagedTransportConnection extends TransportConnection {
|
||||||
// Build the object name for the destination
|
// Build the object name for the destination
|
||||||
Hashtable map = new Hashtable(connectorName.getKeyPropertyList());
|
Hashtable map = new Hashtable(connectorName.getKeyPropertyList());
|
||||||
map.put("Type", "Connection");
|
map.put("Type", "Connection");
|
||||||
map.put("Connection", connectionId);
|
// lets avoid any JMX sensitive characters
|
||||||
|
String jmxConnectionId = connectionId.replace(':', '_');
|
||||||
|
map.put("Connection", jmxConnectionId);
|
||||||
try {
|
try {
|
||||||
return new ObjectName(connectorName.getDomain(), map);
|
return new ObjectName(connectorName.getDomain(), map);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue