My Oracle Support Banner

Converting WLDF Watch Rules from WLS 10.3.x to Policy Expressions in WLS 12.2.1.x (Doc ID 2305243.1)

Last updated on FEBRUARY 16, 2024

Applies to:

Oracle WebLogic Server - Version 12.2.1.0.0 and later
Oracle Service Bus - Version 12.2.1.4.0 to 12.2.1.4.0
Information in this document applies to any platform.

Goal

When migrating to Oracle WebLogic Server 12.2.1, the WebLogic Diagnostics Framework (WLDF) "Watch Rule" from previous releases has changed to "Policy Expression". 

It is not an easy conversion from watch rules to policy expressions unless very familiar with Java Expression Language (Java EL).


For example, the below watch rule was defined to monitor all datasources under a domain and trigger a notification if its state is anything but Running:

      (${ServerRuntime//[weblogic.management.runtime.JDBCDataSourceRuntimeMBean]//State} IN ('Suspended', 'Overloaded', 'Unknown'))

For another example, looking for when an admin/managed server health state is greater than or equal to 3:

      (${ServerRuntime//[weblogic.management.runtime.ServerRuntimeMBean]com.bea:Name=AdminServer,Type=ServerRuntime//HealthState.State} >= 3)

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.