mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-6211 - synchronize creating of jmx composite types
This commit is contained in:
parent
946e62d702
commit
a4c748883a
|
@ -64,7 +64,7 @@ public final class OpenTypeSupport {
|
|||
private final List<String> itemDescriptionsList = new ArrayList<String>();
|
||||
private final List<OpenType> itemTypesList = new ArrayList<OpenType>();
|
||||
|
||||
public CompositeType getCompositeType() throws OpenDataException {
|
||||
public synchronized CompositeType getCompositeType() throws OpenDataException {
|
||||
if (compositeType == null) {
|
||||
init();
|
||||
compositeType = createCompositeType();
|
||||
|
|
Loading…
Reference in New Issue