Setting Classloader Policies
These can be overridden individually or entirely in your project.py or environment specific python file.
| Parameter | Values | Default value if not set | Notes |
|---|---|---|---|
| modfyEntAppConfig | "true", "false" | "false" | Modify the enterprise application after install. Must be set to "true" to use the following settings |
| classloaderPolicyForAppServer | "SINGLE", "MULTIPLE" | "MULTIPLE" | Defines the application server clasloader policy |
| classloaderModeForAppServer | "PARENT_FIRST", "PARENT_LAST" | "PARENT_FIRST" | Defines the application server clasloader mode |
| classloaderForApplication | "PARENT_FIRST", "PARENT_LAST" | "PARENT_FIRST" | Defines the enterprise application clasloader mode |
| classloaderForWebModules | "PARENT_FIRST", "PARENT_LAST" | "PARENT_FIRST" | Defines the web module clasloader mode if not set specifically for a module |
| startingWeightForWebModule | Number | 10000 | Defines the web module default starting weight. Lower number is earlier in the startup order |
| startingWeightForEjbModule | Number | 5000 | Defines the ejb module default starting weight. Lower number is earlier in the startup order |
| classloaderPolicyForWar | "SINGLE", "MULTIPLE" | "MULTIPLE" | Set war classloader policy. Per war or a single classloader for all war modules |
The following is an example from a jython file for enterprise application class loading:
modifyEntAppConfig = "true"
classloaderForApplication = "PARENT_FIRST"
classloaderForWebModules = "PARENT_FIRST"
classloaderForSharedLibrary = "PARENT_FIRST"
startingWeightForWebModule = "10000" # Default for all Modules, overridden below
startingWeightForEjbModule = "5000" # Default for all Modules, overridden below
classloaderPolicyForWar = "SINGLE"
webModuleClassloaderURI_1 = "Advisor.war"
webModuleClassloaderPolicy_1 = "PARENT_FIRST"
webModuleStartingWeight_1 = "10000" #webModuleStartingWeight_# is mandatory when setting webModuleClassloaderPolicy_#
webModuleClassloaderURI_2 = "HelloWorld.war"
webModuleClassloaderPolicy_2 = "PARENT_LAST"
webModuleStartingWeight_2 = "10000"The following is an example from a jython file for application server classloading:
# Application Server - classloader policy and mode
classloaderPolicyForAppServer = "MULTIPLE"
classloaderModeForAppServer = "PARENT_FIRST"
