Skip to main content

Uploading static jar's once

1 reply [Last post]
Anonymous

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tmueller
Offline
Joined: 2005-10-31
Points: 0

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
>