Controlling dynamic updates

There are three types of dynamic update that can be controlled through configuration: changing the server configuration; adding and removing applications; updating installed applications. For all deployed applications, you can configure whether application monitoring is enabled and how often to check for updates to applications. For the "dropins" directory, you can also configure the name and location of the directory and choose whether to deploy the applications that are in the directory.

About this task

By default, deployed applications are monitored for updates, and the updates are dynamically applied to the running application. This applies both to applications that are deployed through configuration entries, and those deployed from the "dropins" directory. You can change these default behaviors by setting the config and applicationMonitor elements in the server.xml configuration file. You can use a text editor to do this, or you can use the developer tools and select Configuration Admin Service or Application Monitor in the server configuration design view.

See also the descriptions of the config and applicationMonitor elements in Liberty profile: Configuration elements in the server.xml file.

The default settings for application monitoring are as follows:
<applicationMonitor updateTrigger="polled" pollingRate="500ms" 
                    dropins="dropins" dropinsEnabled="true"/>
Notes:
  • The updateTrigger property has three possible values:
    polled
    The runtime environment scans the server.xml file for changes using the timing interval specified by the monitorInterval property.
    mbean
    The runtime environment only looks for updates when prompted to do so through a call to an MBean. This is the mode that is used by the developer tools to update the server.xml file, unless you override it.
    disabled
    The updates are not dynamically applied.
  • When you specify the pollingRate property, you include the unit of time after the number:
    • ms (milliseconds)
    • s (seconds)
    • m (minutes)
    • h (hours)
  • The dropins property specifies the name of the directory used as the "dropins" directory.
  • The dropinsEnabled property is a boolean property that determines whether the applications in the "dropins" directory are deployed.

Procedure


Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Wednesday, 22 May 2013
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=twlp_setup_dyn_upd
File name: twlp_setup_dyn_upd.html