*
The moose likes Websphere and the fly likes Changing WAR ClassLoader policy with JACL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Changing WAR ClassLoader policy with JACL" Watch "Changing WAR ClassLoader policy with JACL" New topic
Author

Changing WAR ClassLoader policy with JACL

leonardo battagli
Ranch Hand

Joined: Aug 28, 2003
Posts: 33
Hi all,

I am able to change ClassLoader mode from PARENT_FIRST to PARENT_LAST but I also need to change WAR ClassLoader policy from MODULE tO APPLICATION

this is the JACL I am using now:
WAR CLASSLOADER
------------------------------
set deployments [$AdminConfig getid "/Deployment:bnl/"]
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject]
set myModules [lindex [$AdminConfig showAttribute $deploymentObject modules] 0]
set myWarModule [lindex $myModules 0]
$AdminConfig modify $myWarModule {{classloaderMode PARENT_LAST}}
$AdminConfig save
------------------------------

EAR CLASSLOADER
------------------------------
set deploymentId [$AdminConfig getid /Deployment:$bnl/]
set deployedObj [$AdminConfig showAttribute $deploymentId deployedObject]
set classLoaderAttr [$AdminConfig showAttribute $deployedObj classloader]
$AdminConfig modify $classLoaderAttr {{mode PARENT_LAST}}
$AdminConfig save
------------------------------

I think that I need only to know the variabile name , ie.

set classLoaderAttrPolicy [$AdminConfig showAttribute $deployedObj classloaderPolicy]

how can I find all variables names?

Leo
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Changing WAR ClassLoader policy with JACL