Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

container starts up and deployed web application.

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does the web container know, when it starts up, that there is a web application already deployed? I'm reading HFSJ, there they told, when the tomcat starts up, it looks for looks for deployed web application. My question, how does it know this?

Thanks!
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it searches the webapps directory for directories and deploys the applications in it.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, once we deploy a web application, those directories will be created? and if we redeploy, those directories will be overridden? Please confirm! Thanks!
 
Parth Twari
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, once we deploy a web application, those directories will be created?


Tomcat has a webapps directory..
how do you deploy?
You put your web application's directory( or WAR file) in the tomcat's webapps directory and you start tomcat , once you do that tomcat finds your directory in webapps directory and deploys your web application.

and if we redeploy, those directories will be overridden? Please confirm! Thanks!


Why will one have to overwrite directories. When you redeploy (ex. restart tomcat) your directory is read and deployed again

Regards
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Parth!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic