Attention: If an application is running,
changing an application setting causes the application to restart.
On stand-alone servers, the application restarts after you save the
change. On multiple-server products, the application restarts after
you save the change and files synchronize on the node where the application
is installed.
To
modify WAR class loader mode for an application, complete the following
steps:
Procedure
Set a reference to the deployment.xml document.
For example:
Using Jacl:
set deployments [$AdminConfig getid /Deployment:my_application/]
for module in myModules:
if (module.find('WebModuleDeployment')!= -1):
AdminConfig.modify(module, [['classloaderMode', 'mode']])
Table 4. Deployment configuration values. The
following table describes the elements in this command.
foreach
is a Jacl command
for
is a Jython command
module
is an object that is being modified
$
is a Jacl operator for substituting a variable
name with its value
myModules
is a variable name
regexp
is a function to use regular expression is used
for searching within the previous commands
module.find
is a function to use regular expression is used
for searching within the previous commands
AdminConfig
is an object that represents the WebSphere Application
Server configuration
modify
is an AdminConfig command
classloaderMode
is an attribute within the deployment.xml document
mode
is the class loader mode value that you want
to set for the WAR module. The mode value is either PARENT_FIRST or
PARENT_LAST. For more information, see the documentation about class
loaders.
Save the configuration, for example:
Using Jacl:
$AdminConfig save
Using Jython:
AdminConfig.save()
Verify the changes that you made to the attribute value
with the showall command. For example:
Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.
This feature requires Internet access.
Most of the following links will take you to information that is not part of the formal product documentation and is provided "as is." Some of these links go to non-IBM Web sites and are provided for your convenience only and do not in any manner serve as an endorsement by IBM of those Web sites, the material thereon, or the owner thereof.
Last updated: Aug 31, 2013 1:23:07 AM CDT http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=txml_warclmode File name: txml_warclmode.html