Author: alessio.soldano(a)jboss.com
Date: 2007-12-17 19:23:54 -0500 (Mon, 17 Dec 2007)
New Revision: 5340
Modified:
framework/branches/asoldano/trunk/src/main/java/org/jboss/wsf/framework/management/ManagedEndpoint.java
Log:
Fix hot addition of record processors
Modified:
framework/branches/asoldano/trunk/src/main/java/org/jboss/wsf/framework/management/ManagedEndpoint.java
===================================================================
---
framework/branches/asoldano/trunk/src/main/java/org/jboss/wsf/framework/management/ManagedEndpoint.java 2007-12-18
00:22:52 UTC (rev 5339)
+++
framework/branches/asoldano/trunk/src/main/java/org/jboss/wsf/framework/management/ManagedEndpoint.java 2007-12-18
00:23:54 UTC (rev 5340)
@@ -32,6 +32,7 @@
import org.jboss.logging.Logger;
import org.jboss.wsf.common.ObjectNameFactory;
import org.jboss.wsf.framework.management.recording.ManagedRecordExtractor;
+import org.jboss.wsf.framework.management.recording.ManagedRecordProcessor;
import org.jboss.wsf.framework.management.recording.RecordExtractor;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.management.EndpointMetrics;
@@ -130,7 +131,7 @@
this.getRecordProcessors().add(processor);
try
{
- mbeanServer.registerMBean(processor, ObjectNameFactory.create(endpoint.getName()
+ ",recordProcessor=" + processor.getName()));
+ mbeanServer.registerMBean(new ManagedRecordProcessor(processor),
ObjectNameFactory.create(endpoint.getName() + ",recordProcessor=" +
processor.getName()));
if (processor instanceof RecordExtractor)
{
mbeanServer.registerMBean(new
ManagedRecordExtractor((RecordExtractor)processor),
ObjectNameFactory.create(endpoint.getName() + ",recordExtractor="
@@ -172,7 +173,7 @@
{
try
{
- mbeanServer.registerMBean(processor,
ObjectNameFactory.create(endpoint.getName() + ",recordProcessor=" +
processor.getName()));
+ mbeanServer.registerMBean(new ManagedRecordProcessor(processor),
ObjectNameFactory.create(endpoint.getName() + ",recordProcessor=" +
processor.getName()));
if (processor instanceof RecordExtractor)
{
mbeanServer.registerMBean(new
ManagedRecordExtractor((RecordExtractor)processor),
ObjectNameFactory.create(endpoint.getName() + ",recordExtractor="
Show replies by date