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

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.
主站蜘蛛池模板: 通渭县| 泉州市| 云和县| 周至县| 天全县| 绥江县| 商水县| 阳高县| 灵武市| 噶尔县| 玉林市| 白城市| 宜兴市| 韩城市| 双辽市| 莫力| 蕉岭县| 雷山县| 竹溪县| 太仆寺旗| 镇坪县| 文登市| 科技| 云和县| 吴江市| 永顺县| 贵定县| 阳朔县| 乌鲁木齐县| 鄂州市| 广丰县| 永胜县| 峨边| 中阳县| 沽源县| 吉林省| 左云县| 称多县| 射洪县| 资源县| 肇源县|