Author: ataylor
Date: 2012-01-26 05:35:18 -0500 (Thu, 26 Jan 2012)
New Revision: 12048
Modified:
branches/Branch_2_2_AS7/src/main/org/hornetq/core/server/management/impl/ManagementServiceImpl.java
Log:
Hornetq-821 - fix syncronization problem
Modified:
branches/Branch_2_2_AS7/src/main/org/hornetq/core/server/management/impl/ManagementServiceImpl.java
===================================================================
---
branches/Branch_2_2_AS7/src/main/org/hornetq/core/server/management/impl/ManagementServiceImpl.java 2012-01-26
07:54:12 UTC (rev 12047)
+++
branches/Branch_2_2_AS7/src/main/org/hornetq/core/server/management/impl/ManagementServiceImpl.java 2012-01-26
10:35:18 UTC (rev 12048)
@@ -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());
Show replies by date