File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: container starts up and deployed web application.