Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002390 [Resin] minor always 02-01-08 08:14 02-11-08 16:57
Reporter sam View Status public  
Assigned To ferg
Priority urgent Resolution fixed  
Status closed   Product Version 3.1.4
Summary 0002390: unregister MBean has no effect
Description (rep by J Smyth)

I am trying to remove an MBean using the following code and it is not
getting unregistered with the server. Here is the test code:

MBeanServer server = ManagementFactory.getPlatformMBeanServer();

System.out.println(objectName+" is registered with server: "+server+ "
?? "+server.isRegistered(objectName)+" before calling the unregister");

server.unregisterMBean( objectName );

System.out.println(objectName+" is registered with server: "+server+ "
?? "+server.isRegistered(objectName)+" after calling the unregister");

The MBean is named "DEC:type=system,service=LoggingManager" here are the
logs from my test:

DEC:type=system,service=LoggingManager is registered with server:
GlobalMBeanServer[] ?? true before calling the unregister

DEC:type=system,service=LoggingManager is registered with server:
GlobalMBeanServer[] ?? true after calling the unregister

As you can see from the logs, we are using the global MBeanServer but
the MBean will not unregister.
Additional Information
Attached Files

- Relationships

- Notes
(0002754)
ferg
02-11-08 16:57

server/21q0
 

- Issue History
Date Modified Username Field Change
02-01-08 08:14 sam New Issue
02-11-08 16:57 ferg Note Added: 0002754
02-11-08 16:57 ferg Assigned To  => ferg
02-11-08 16:57 ferg Status new => closed
02-11-08 16:57 ferg Resolution open => fixed
02-11-08 16:57 ferg Fixed in Version  => 3.1.5


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker