Creating Java Global Instance Shared Resource

You can use Java Global Instance shared configuration resource to specify a Java object to be shared across all process instances in a Java Virtual Machine (JVM).

When the engine is started, an instance of the specified Java class is constructed. When the process engine shuts down, if specified, a cleanup method is invoked on the object. The object is released before the engine shuts down. If multiple process instances access the shared Java global instance, you might want to ensure that only one process instance can access the object at a time. You can accomplish this by either declaring the methods of the configured class as synchronous or by using a critical section group.

Prerequisites

Ensure that you have created a palette, as described in Defining a Palette.

Procedure

  1. Adding Java Global Instance Shared Resource
  2. Adding Business Logic
  3. Creating a Process
  4. Configuring Java Global Instance Shared Resource