WebSphere Application Server - wsadmin - Shared Library with multiple classpath entries

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > November 2005 > wsadmin - Shared Library with multiple classpath entries





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author wsadmin - Shared Library with multiple classpath entries
Ben_

2005-11-23, 5:56 pm

Hello,

I can create a Shared Library with "$AdminConfig create Library $node {{name
MyLibrary} {classPath /path/file1.jar}}".

But I can't figure out how to create a shared library with several classpath
entries (/path/file1.jar, /path/file2.jar, /path/file3.jar).

Help appreciated... :-)


Jane

2005-11-23, 5:56 pm

Can you try this?

set path [ list classpath1 classpath2]
$AdminConfig create Library $node {{name
MyLibrary} {classPath $path}}

Please let me know whether it works.

Thanks

Jane



"Ben_" <reply@newsgroup.com> wrote in message
news:dm260g$6i4k$1@news.boulder.ibm.com...
> Hello,
>
> I can create a Shared Library with "$AdminConfig create Library $node
> {{name
> MyLibrary} {classPath /path/file1.jar}}".
>
> But I can't figure out how to create a shared library with several
> classpath
> entries (/path/file1.jar, /path/file2.jar, /path/file3.jar).
>
> Help appreciated... :-)
>
>



Ben_

2005-11-25, 7:50 am

That doesn't work: it creates a Classpath entry with "$path" as text.

wsadmin>$AdminConfig show $library
{classPath $path}
{name MyLibrary}
{nativePath {}}

But I found it by making it the other way round: create one from the
Administrative Console and display the details.

The separator is ";".

wsadmin>$AdminConfig show [$AdminConfig list Library]
{classPath /path/file1.jar;/path/file2.jar}
{name MyLibrary}
{nativePath {}}

Don't know why I didn't think to this before... :-)

Thanks anyway.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com