Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Associating an Application to a Shared Library.

56 views
Skip to first unread message

nevil...@yahoo.com

unread,
Jul 6, 2006, 12:26:49 PM7/6/06
to
I have created a shared library(In Admin Console, Environment > Shared Libraries), created a class loader and associated the created shared library with the application server through the class loader. All this was done using JACL in wsadmin. Now I want to associate the shared library with a specific application but it doesn't seem to work. When I navigate to Applications > Enterprise Applications > MyApp > Libraries, it doesn't show the library that I created over there, but when I click on Add > Library Name, it shows the library I created in the drop down list.
Is there a JACL command to apply that specific library from the drop down list to the application ?

Dexthor

unread,
Jul 6, 2006, 1:01:03 PM7/6/06
to

nevil...@yahoo.com wrote:
> I have created a shared library(In Admin Console, Environment > Shared Libraries), created a class loader and associated the created shared library with the application server through the class loader. All this was done using JACL in wsadmin. Now I want to associate the shared library with a specific application but it doesn't seem to work. When I navigate to Applications > Enterprise Applications > MyApp > Libraries, it doesn't show the library that I created over there, but when I click on Add > Library Name, it shows the library I created in the drop down list.
> Is there a JACL command to apply that specific library from the drop down list to the application ?

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.

Ben_

unread,
Jul 6, 2006, 2:11:55 PM7/6/06
to
Checked the scope of the shared library ?


nevil...@yahoo.com

unread,
Jul 6, 2006, 3:01:08 PM7/6/06
to
Yes, it's at the server level. I am having trouble associating the shared library with a particular Application. I can associate it with a Server using the following ...

$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 ?

Dexthor

unread,
Jul 6, 2006, 4:50:05 PM7/6/06
to

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.

Dexthor

unread,
Jul 6, 2006, 4:52:56 PM7/6/06
to

Ben_

unread,
Jul 6, 2006, 5:01:32 PM7/6/06
to

nevil...@yahoo.com

unread,
Jul 6, 2006, 6:18:13 PM7/6/06
to
Thanks Ben, problem solved, appreciate your help.
0 new messages