Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Re: Advanced War deployment

Mikolaj Rydzewski

2007-01-10

Replies:

Vlasov Igor wrote:
> I have one commercial project and want to deploy it throw .war deployment
> process.
> My application uses external libs (10 mb) which must presents in WEB-INF\lib
> dir. All app size is 12mb.
>
> How can i avoid of putting all that libs in .war file and transfer only
> actual content of my app in one file?
> For example I put all except libs in .war and deploy it. Then tomcat replace
> only changed file and do not delete already deployes libs.
>  
Why is the size of war file is a problem for you? You can put all
content from WEB-INF/lib to common/lib or shared/lib. But such solution
has several drawbacks and you should be aware of them:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html

On the other hand, if you want just to save bandwith when deploying new
wersion of application you could use i.e. rsync to transfer war file to
remote server, and then deploy remote file.

--
Mikolaj Rydzewski <miki@(protected)>


Attachment: smime.p7s
©2008 junlu.com - Jax Systems, LLC, U.S.A.