官术网_书友最值得收藏!

Types of deployment

The deployment staging mode determines how deployment files are made available to the target servers that must deploy an application or standalone module. The Tomcat 7 server provides three different options for staging files listed as follows:

  • Stage mode
  • Nostage mode
  • External_stage mode

The following table describes the behavior and best practices for using the different deployment staging modes:

Ways of application deployment in Tomcat 7

Deployment of applications can be done in many ways in Tomcat 7. There are five different ways which are widely known and accepted in the various industries displayed in the following figure:

Ways of application deployment in Tomcat 7
  • War deployment: You can deploy the WAR file in the CATALINA_BASE directory of Tomcat and restart Tomcat to view the application. This approach is widely used in the production environment.
  • Unpacked deployment: In this deployment method, the WAR file is extracted on the CATALINA_BASE directory for the instance. This method is commonly used in the development server.
  • Tomcat Manager: It's a very good tool which is widely used in the production environment, mainly in remote infrastructure deployment. You can log in to the Tomcat browser from your system and deploy. Then click on the new web application deployment, as shown in the next screenshot:
    Ways of application deployment in Tomcat 7
    • You can create the context path using the Deploy tab. Click on Browse and select the required WAR file. Then click on Deploy. It will take 10 to 15 seconds to deploy the application and you will see a page similar to the following screenshot:
      Ways of application deployment in Tomcat 7
    • The following screenshot shows the application deployment status and administrative control such as Stop, Reload, and Undeploy:
      Ways of application deployment in Tomcat 7
    • Once the application is deployed successfully, as shown in the following screenshot, you can browse the application using the URL, http://localhost:8080/sample:
      Ways of application deployment in Tomcat 7
  • Using ANT scripts: You can also deploy the application using the ANT scripts. These scripts contain the information of the source/destination and target file. For doing this deployment, the Tomcat instance should be running.
  • TCD (Tomcat Deployer): It is a tool which is used for application deployment. ANT should be installed for the TCD to be working and the Tomcat instance should be running. There is no need to install he TCD on the Tomcat instance.
主站蜘蛛池模板: 营山县| 呼图壁县| 镇雄县| 斗六市| 娄底市| 宁安市| 柳江县| 乾安县| 白玉县| 卢湾区| 朝阳市| 临城县| 永寿县| 辽阳县| 通化县| 忻城县| 广东省| 灵璧县| 迁西县| 黄骅市| 安康市| 南郑县| 大厂| 玉林市| 乐平市| 读书| 武乡县| 饶阳县| 黄陵县| 乐安县| 万全县| 晋宁县| 义乌市| 鹤庆县| 吉水县| 海淀区| 远安县| 教育| 汕尾市| 阳高县| 镇平县|