JavaCompute node classloading

When you include one or more JavaCompute nodes in a broker archive (BAR) file, the JAR files are loaded in a separate classloader. The classloader loads all classes that are packaged within the deployed BAR. These classes override any classes that are in the shared classes directory or the CLASSPATH environment variable.

The broker uses the following classloader tree:

The diagram shows the components of the classloader tree that are used by the broker. The Bootstrap is the root node of the tree and has the System as its only child. The child of System is Common. Common has two children: Broker and Shared. Broker does not have any children; Shared has one child, EGShared.

These components are in the classloader tree:

The broker uses the following search path to find JavaCompute node classes:

  1. The deployed JAR file
  2. <WorkPath>/shared-classes/ to locate any JAR files
  3. The CLASSPATH environment variable
Related tasks
Creating Java code for a JavaCompute node
Deploying JavaCompute node code
Related reference
JavaCompute node
Related information
Java user-defined extensions API
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2009Copyright IBM Corporation 1999, 2009.
Last updated : 2009-01-07 15:20:45

ac37125_