Configure a shared library for an application

 


  1. 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.

  2. To modify an existing shared library:

    set libid [$AdminConfig getid /Library:LibName/]
    $AdminConfig modify Library $libid {{classPath /new/path/to/lib}}

  3. 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}}

  4. Save the changes:

    $AdminConfig save