This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes container starts up and deployed web application. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "container starts up and deployed web application." Watch "container starts up and deployed web application." New topic
Author

container starts up and deployed web application.

Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

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!


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Parth Twari
Ranch Hand

Joined: Jan 20, 2010
Posts: 163
it searches the webapps directory for directories and deploys the applications in it.


Parth Tiwari
| Pursuing Bachelor of Engineering | OSUM Club Leader | SCJP 6 | SCWCD 5 |...
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

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

Joined: Jan 20, 2010
Posts: 163
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

Joined: Nov 04, 2009
Posts: 2066

Thanks Parth!
 
 
subject: container starts up and deployed web application.