webMethods and Intelligent Business Operations 10.2 | Running Business Processes and Composite Applications | webMethods Integration Server Administrator’s Guide | Class Loading in Integration Server | Adding Classes to the Server Classpath | How Classes Are Found
 
How Classes Are Found
When you are choosing where to put your classes on the server classpath, as described in Adding Classes to the Server Classpath, consider the effect of the possible locations on the loading order. Here is the order in which Integration Server searches the various locations relative to one another:
1. watt.server.prepend.classes
2. Software AG_directory \ Integration Server_directory \instances\instanceName\lib\jars\custom
3. Software AG_directory \ Integration Server_directory \lib\jars\custom
4. Software AG_directory \ Integration Server_directory \instances\instanceName\packages\packageName\code\jars\static
5. watt.server.append.classes
If you have two or more copies of a class, whether it is a single class file or is a class in a jar file, and multiple locations for the class appear in the server classpath, Integration Server always loads the instance of the class that appears first in the server classpath. Integration Server never uses other instances of the same class that appear later in the server classpath. A scenario where this is significant is when different versions of a third-party jar file are on the server classpath. Integration Server always uses the version that comes first in the server classpath.
If more than one package has jar files in its code\jars\static directory, the jar files will be added to the server classpath in alphabetical order, by package name. For example, jar files in PackageA\code\jars\static will be loaded before jar files in PackageB\code\jars\static.
You can view the Integration Server classpath on the About page in Integration Server Administrator.

Copyright © 2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release