• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing WAR ClassLoader policy with JACL  RSS feed

leonardo battagli
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!