org.objectweb.jonas.management.reconfig.manager
Class ReconfigManager
java.lang.Object
org.objectweb.jonas.management.reconfig.manager.ReconfigManager
- All Implemented Interfaces:
- EventListener, NotificationListener, ReconfigManagerMBean
public class ReconfigManager
- extends Object
- implements ReconfigManagerMBean, NotificationListener
This MBean allows persistent reconfiguration of a JOnAS server, alltogether with its embedded services,
and possibly used resources like Data Sources ans Mail Factories.
This class implements NotificationListener interface. The ReconfigManager adds itself as Listener to
the following JMX Notification types (JAVA types):
- MBeanServerNotification
, sent by the MBean server on MBeans registration/un-registration
- Notification with type equal to ReconfigEmitter.RECONFIG_TYPE
- Notification with type equal to ReconfigEmitter.SAVE_RECONFIG_TYPE
- Author:
- Adriana Danes
04/09/20 Update with JSR77 JDBCDataSource MBeans
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReconfigManager
public ReconfigManager(Properties serverProperties,
String domainName,
MBeanServer jmxServer)
throws ReconfigException
- Create the ReconfigManager MBean instance and add itself as listener to MBeanServerNotifications.
- Parameters:
serverProperties
- The JOnAS server's initial configuration propertiesjmxServer
- The JOnAS server's MBean server
- Throws:
ReconfigException
handleNotification
public void handleNotification(Notification notification,
Object handback)
- Treat the notifications emitted by those MBeans having the ReconfigManager added as listener.
This method determines the type of the notification and calls the specific treatment.
- Specified by:
handleNotification
in interface NotificationListener
- Parameters:
notification
- received notificationhandback
- received hand-back object
Copyright © 2007 OW2 Consortium. All Rights Reserved.