java - Tomcat: unpacked WAR vs packed WAR in docBase -


tomcat can use both types - or directly app.war file with:

    <host       ...       unpackwars="false"       autodeploy="false"       deployonstartup="false">        <context         path=""         docbase="app.war"       /> 

or - directory, created unpacked war-file:

    <host       ...       unpackwars="true"       autodeploy="true"       deployonstartup="false">        <context         path=""         docbase="app"       /> 

question - difference?

as understand: during startup - tomcat load content of directory or war-file in memory - , works directly ram. - there must not difference in performance. correct? there any other deatils?

discussed @ other places such this one.

in essence

  • war file gets unpacked anyway, in work directory rather in webapps.
  • on windows might have issues w/ files being locked os , not deletable, although there known workaround it.
  • root path not same if app writing file system, might run issues.

hth, jan


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -