You can deploy an application to a production machine by just copying the application directory and all of its contents to that machine. Alternatively, you can package your application into a Web archive (WAR) file. A WAR file has a .war extension. A WAR file is basically a Java archive (JAR) file you create using the jar program. The WAR filename is usually the same as the application’s name, but you can use a different name if you desire.
To deploy an application packaged in a WAR file, copy the WAR file into the webapps directory. You then can access your application just as you would access an unpackaged application. The name used for your packaged application is the .war filename. For example, if you package an application called myApp into a WAR file called aWarApp.war, when deployed, the application name is aWarApp, not myApp. This is because the application name is not included in the WAR file when you package your application.
| DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware. |