Just as you bound the SharedLibrary to your Application Server, you
will have to do the binding to your EnterpriseApp->Libraries too. So,
either you do it from console, by clicking Add or do it via scripting.
I dont have a script readily available with me right now. You may find
it in the Infocenter, if you search through.
-Dexthor.
$AdminConfig create LibraryRef $classLoader {{libraryName MyshareLibrary} {sharedClassloader true}}
But this links it to all the applications on the server. I want it to be linked to only a particular application, called "myApp," using JACL. Would you happen to know how ?
Try this:
set appname "yourEnterpriseApp"
set libraryName "yourLibraryString"
set library [$AdminConfig getid /Library:${libraryName}/]
set deployment [$AdminConfig getid /Deployment:${appname}/]
set appDeploy [$AdminConfig showAttribute $deployment deployedObject]
set classLoader [$AdminConfig showAttribute $appDeploy classloader]
$AdminConfig create LibraryRef $classLoader {{libraryName
${sharedLibraryName}} {sharedClassloader true}}
$AdminConfig save
-Dexthor.
You can also read up at:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/topic/com.ibm.websphere.nd.doc/info/ae/ae/txml_applibrary.html
-Dexthor.