51 Different Ways Deploying java web application in Server |Adv Java Servlet Programming Tutorial

Опубликовано: 09 February 2018
на канале: tech fort
1,014
41

#Different #Ways of #Deploying #java #web #application in #Server: #adv java #Advance #Java #Servlet #Programming #Tutorial
Programmers can deploy java web application in servers by using one of the following 3 ways:

1) Hard Deployment:
-------------------
Copy the directory or .war file of web application to certain folder of server of server software installation folder (like Tomcat-home\webapps folder)

2) Console Deployment:
---------------------
Deploy the file as admin console screen of server(like Tomcat manager)

Procedure to deploy the console deployment of web application on Tomcat Server:

Step 1:
------ Keep .war file ready

keep Deployment directory structure ready with working java web appln.
E:/VoterApp
|------input.html
|------Validation.js
|------WEB-INF
|--------web.xml
|--------classes
|--------VoterSrv.java
|--------VoterSrv.class

Prepare .war file
E:/VoterApp jar cf VoterWebApp.war .
Here c - indicate Create .jar/.war file
Here f - indicate jar/war file name.

Step 2:
------ Deploy the .war file through Tomcat Manager service
Open Tomcat Manager Console service from browser

Step 3: Test the web application using Requst URL
http://localhost:2020/VoterWebApp

When .war file is deployed in tomcat server then the war file name becomes context-path or context-root or Web-application-name.

Eg: When VoterWebApp.war file is deployed, then "VoterWebApp" acts as webapplication name or context root or context root.

3) Deployment using Tools:
--------------------------
Use any IDE's or Maven Tool, Ant Tool for deployment.


На этой странице сайта вы можете посмотреть видео онлайн 51 Different Ways Deploying java web application in Server |Adv Java Servlet Programming Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь tech fort 09 February 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,014 раз и оно понравилось 41 зрителям. Приятного просмотра!