wood burning stoves 2.0*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing WAR ClassLoader policy with JACL
 
Similar Threads
Deployment of ear without using admin console
Jacl script to rename the default cookie name (JSESSIONID)
need help to create scheduler in websphere using JACL scripts
need jacl script help for websphere to create custom property for datasource
Help Needed with Jacl script.