File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Websphere
Bookmark "Changing WAR ClassLoader policy with JACL" Watch "Changing WAR ClassLoader policy with JACL" New topic

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:
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

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?

I agree. Here's the link:
subject: Changing WAR ClassLoader policy with JACL
It's not a secret anymore!