diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java index d542d36d7a..735d8ad45c 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java +++ b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/OpenTypeSupport.java @@ -64,7 +64,7 @@ public final class OpenTypeSupport { private final List itemDescriptionsList = new ArrayList(); private final List itemTypesList = new ArrayList(); - public CompositeType getCompositeType() throws OpenDataException { + public synchronized CompositeType getCompositeType() throws OpenDataException { if (compositeType == null) { init(); compositeType = createCompositeType();