Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 7 Java Palette : Java Global Instance

Java Global Instance
Shared Configuration
The Java Global Instance shared configuration resource allows you to specify a Java object that can be shared across all process instances in a Java Virtual Machine (JVM). When the process engine is started, an instance of the specified Java class is constructed. When the process engine is shut down, if specified, a cleanup method is invoked on the object and the object is released before the engine shuts down. Any Java Method activity can be configured to access the shared Java Global Instance when the process engine runs. Any Java Code activity can access the shared Java Global Instance by invoking the static methods of the configured Java class.
If multiple process instances access the shared Java Global Instance, you may 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. See TIBCO ActiveMatrix BusinessWorks Process Design for more information about using critical section groups.
Java class files or archives referenced by this resource must be available to the Java VM in which TIBCO Designer and the TIBCO ActiveMatrix BusinessWorks process engine are running. This is done either by adding the correct path to the classpath in the designer.tra and bwengine.tra files (see the comments in the .tra files for more information about modifying the classpath) or by using an Alias Library resource. If you add the path to the classpath, the system class loader loads the class into the Java VM. If you use an Alias Library resource, the TIBCO ActiveMatrix BusinessWorks application class loader loads the class into the Java VM. If both techniques are used, the class loaded by the system class loader takes precedence.
Configuration
The Configuration tab has the following fields.
Use this field to specify an AliasLibrary resource that is used to locate the Java class files. See TIBCO Designer Palette Reference for more information about AliasLibrary resources.
Value — Supply a value for the parameter in this field. Note: When string is the datatype for the parameter, do not use quotes around the string when entering the value.
Advanced
The Advanced tab has the following fields:.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved