org.objectweb.jonas.management
Class ReconfigManager

java.lang.Object
  extended by org.objectweb.jonas.management.ReconfigManager
All Implemented Interfaces:
java.util.EventListener, javax.management.NotificationListener, ReconfigManagerMBean

public class ReconfigManager
extends java.lang.Object
implements ReconfigManagerMBean, javax.management.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):

Author:
Adriana Danes 04/09/20 Update with JSR77 JDBCDataSource MBeans

Constructor Summary
ReconfigManager(java.util.Properties serverProperties, javax.management.MBeanServer jmxServer)
          Create the ReconfigManager MBean instance and add itself as listner to MBeanServerNotifications.
 
Method Summary
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          Treat the notifications emitted by those MBeans having the ReconfigManager added as listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReconfigManager

public ReconfigManager(java.util.Properties serverProperties,
                       javax.management.MBeanServer jmxServer)
                throws ReconfigException
Create the ReconfigManager MBean instance and add itself as listner to MBeanServerNotifications.

Parameters:
serverProperties - The JOnAS server's initial configuration properties
jmxServer - The JOnAS server's MBean server
Throws:
ReconfigException
Method Detail

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.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 treatement.

Specified by:
handleNotification in interface javax.management.NotificationListener
Parameters:
notification - received notification
handback - received handback object