users@glassfish.java.net

Re: Uploading static jar's once

From: Tom Mueller <Tom.Mueller_at_oracle.com>
Date: Fri, 12 Apr 2013 09:23:58 -0500

Hi Blake,

The add-library command is useful for this. This is a new command in
3.1.2, so use "asadmin add-library -?" to see the manual page. Once
you've run this command, you can then deploy the application with the
--library option to reference the libraries that have been uploaded.

Tom

On 4/11/13 9:54 PM, Blake McBride wrote:
> Greetings,
>
> I have a large web/web service app that includes over 40MB of
> unchanging jar files used as libraries (not application specific).
> When I used tomcat I could put those libraries in a shared location
> and any number of instances of my application could use them. This
> saves on disk space, memory space, and upload times.
>
> I already have the ability to separate my application war file from a
> war file that just contains these unchanging jar files. How can I
> upload and install those non-changing, common jar files once, thus
> allowing me to update my application specific code without having to
> include the library jars in my application war?
>
> Thanks.
>
> Blake McBride
>