Show TOC Start of Content Area

Procedure documentation Registering a Property Change Listener  Locate the document in its SAP Library structure

Use

If you want the cluster to receive notifications when properties are changed, you have to register a property change listener.

Procedure

...

       1.      Implement the interface ApplicationPropertiesChangeListener by implementing its propertiesChanged() call-back method.

       2.      Register the listener implementation within the ApplicationPropertiesAccess (with addApplicationPropertiesChangedListener(ApplicationPropertiesChangeListener listener))  instance and once it is registered, the call-back method is called on every node in the cluster in case the application properties are changed during runtime (using NWA). In this callback method, you might then read the updated properties and decide how to proceed.

       3.      Unregister your listener while your application is shut down or it does not use the listener anymore. You can do this by calling removeApplicationPropertiesChangedListener (ApplicationPropertiesChangeListener).

More information: http://help.sap.com/javadocs/nwce

 

End of Content Area