Configure a shared library for an application
- To create a shared library with a node scope:
set nodeid [$AdminConfig getid /Cell:cellname/Node:nodename/]
$AdminConfig create Library $nodeid {{name LibName} {classPath /path/to/lib}}One can also use a cell or server scope.
- To modify an existing shared library:
set libid [$AdminConfig getid /Library:LibName/]
$AdminConfig modify Library $libid {{classPath /new/path/to/lib}}- Configure a shared library using the application class loader:
set $dpid [$AdminConfig getid /Deployment:appName/]set appDeploy [$AdminConfig showAttribute $dpid deployedObject]
set classLoader [$AdminConfig showAttribute $appDeploy classloader]
$AdminConfig create LibraryRef $classLoader {{libraryName LibName} {sharedClassloader true}}
- Save the changes:
$AdminConfig save