Author: ataylor
Date: 2012-02-03 06:51:32 -0500 (Fri, 03 Feb 2012)
New Revision: 12075
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/server/management/impl/ManagementServiceImpl.java
Log:
https://issues.jboss.org/browse/HORNETQ-821 - added syncronization
Modified:
trunk/hornetq-core/src/main/java/org/hornetq/core/server/management/impl/ManagementServiceImpl.java
===================================================================
---
trunk/hornetq-core/src/main/java/org/hornetq/core/server/management/impl/ManagementServiceImpl.java 2012-02-03
11:49:25 UTC (rev 12074)
+++
trunk/hornetq-core/src/main/java/org/hornetq/core/server/management/impl/ManagementServiceImpl.java 2012-02-03
11:51:32 UTC (rev 12075)
@@ -472,12 +472,12 @@
return reply;
}
- public Object getResource(final String resourceName)
+ public synchronized Object getResource(final String resourceName)
{
return registry.get(resourceName);
}
- public Object[] getResources(final Class<?> resourceType)
+ public synchronized Object[] getResources(final Class<?> resourceType)
{
List<Object> resources = new ArrayList<Object>();
Collection<Object> clone = new ArrayList<Object>(registry.values());