GlassFish 3.1.2 and 4.0 will have add-library, remove-library, and
list-libraries commands that will do just that. Is that an acceptable
solution?
On 10/27/11 12:55 PM, forums_at_java.net wrote:
> asadmin deploy --libraries is convenient to configure 3rd-party jar
> for an
> app, but some libs require to be in higher up ClassLoader to function
> properly, e.g. SQL drivers, cybssecurity.jar, etc.
>
> The documented way to copy such jar files to the domain/lib directory
> works
> fine, but it's really not elegant from a configuration management
> standpoint.
> I'd prefer having a way to configure it through a parameter or command
> line
> argument.
>
> I checked asadmin start-domain doc, but no --libraries there...
>
> GFv3 also deprecated the classpath-suffix attribute in domain.xml, so not
> configurable there anymore either...
>
> Does anyone know of a clean way to declare 3rd-party libs for GFv3
> domains,
> without having to copy them over physically in each of them?
>
> Thanks!
>
> PS: symlinks are not acceptable workarounds :)
>
>
> --
>
> [Message sent by forum member 'cyril4j']
>
> View Post: http://forums.java.net/node/857808
>
>
--
Jason Lee
Senior Member of Technical Staff, Oracle
GlassFish Team
Phone +1 (405) 216-3193
http://blogs.steeplesoft.com