Anonymous | Login | Signup for a new account | 12-17-2024 08:54 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |