Re: about war
mail2.scorpio@gmail.com wrote:
what is the purpose of war.why we need to use war when deploying.how
many ways we can deploy an application.
In the spirit of helping you get better use of Usenet, may I suggest that you
follow standard typographic conventions of placing an interrogatory mark, '?',
at the end of a question, and using two spaces after each sentence to help the
reader distinguish them?
As to your questions, a WAR file is a special type of JAR file. The word is
an abbreviation for "Web ARchive". It contains all the elements of a web
application in a standard layout so that a web container like Tomcat or many
others can successfully deploy the application.
You don't actually need to use a WAR to deploy an application, but it makes
the job much, much easier.
For the ways to deploy an application, the best source is the application
container's documentation. For example, Tomcat has two ways - deep-copy a
directory into its webapps/ subdirectory or copy a WAR file into its webapps/
subdirectory.
A really rudimentary Google search like
<http://www.google.com/search?q=Java+WAR+file>
will turn up several helpful links, such as
<http://mindprod.com/jgloss/warfile.html>
<http://access1.sun.com/techarticles/simple.WAR.html>
Also, you really should start with the standard introductory materials, such
as the Sun JEE tutorial:
<http://java.sun.com/javaee/5/docs/tutorial/doc/WebApp.html#wp76431>
or the Tomcat documentation:
<http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html>
--
Lew