mirror of https://github.com/apache/activemq.git
Create a better ObjectName for dynamic destination producers. git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1133564 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c43282ed8e
commit
d34967bdd0
|
@ -707,8 +707,8 @@ public class ManagedRegionBroker extends RegionBroker {
|
||||||
String destinationName = "destinationName=";
|
String destinationName = "destinationName=";
|
||||||
|
|
||||||
if (producerInfo.getDestination() == null) {
|
if (producerInfo.getDestination() == null) {
|
||||||
destinationType += "NOTSET";
|
destinationType += "dynamic";
|
||||||
destinationName += "NOTSET";
|
destinationName = null;
|
||||||
} else {
|
} else {
|
||||||
destinationType += producerInfo.getDestination().getDestinationTypeAsString();
|
destinationType += producerInfo.getDestination().getDestinationTypeAsString();
|
||||||
destinationName += JMXSupport.encodeObjectNamePart(producerInfo.getDestination().getPhysicalName());
|
destinationName += JMXSupport.encodeObjectNamePart(producerInfo.getDestination().getPhysicalName());
|
||||||
|
@ -719,7 +719,8 @@ public class ManagedRegionBroker extends RegionBroker {
|
||||||
|
|
||||||
ObjectName objectName = new ObjectName(brokerObjectName.getDomain() + ":" + "BrokerName=" + map.get("BrokerName") + ","
|
ObjectName objectName = new ObjectName(brokerObjectName.getDomain() + ":" + "BrokerName=" + map.get("BrokerName") + ","
|
||||||
+ "Type=Producer" + ","
|
+ "Type=Producer" + ","
|
||||||
+ destinationType + "," + destinationName + ","
|
+ destinationType + ","
|
||||||
|
+ (destinationName != null ? destinationName + "," : "")
|
||||||
+ clientId + "," + producerId);
|
+ clientId + "," + producerId);
|
||||||
return objectName;
|
return objectName;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue