Batch - Parallel deployment
1. Hot deploy vs Auto deploy
1_1 Hot deploy
- Server on
- we can deploy our sources while server is working
- Source is in the webapps folder
- we deploy our sources by using context.xml or manager
- server.xml
- autoDelploy = true/false?
-> If source is in a webapps, Will you deploy a souce automatically?
1_2 Auto deploy
- JSP
- CATALINA_HOME/conf/web.xml
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>fork</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>development</param-name>
<param-value>false</param-value>
</init-param>
<init-param>
<param-name>checkInterval</param-name>
<param-value>1</param-value>
</init-param>
<load-on-startup>3</load-on-startup>
</servlet>
- Servlet
- context.xml
<Context reloadable = "true"/>
2. Parallel Deploy
2_1. Parallel?
- There are two app versions
1. app ver.01 (old)
2. app ver.02 (New)
- If A user is using a old version, User can keep using it until User's session is connected
- New user will be used a app ver.02 When New user connect to the Server
2_2. How to use
a. Naming
- webapp##version
sample##01
sample##02
b. deploy
- by webapp
- by context.xml
- sample##01.xml
- sample##02.xml
'WAS > Tomcat' 카테고리의 다른 글
[Tomcat] 7.Host (0) | 2016.04.25 |
---|---|
[Tomcat] 6. Interwork DB (0) | 2016.04.24 |
[Tomcat] 4. Batch (0) | 2016.04.22 |
[Tomcat] 3. Config (0) | 2016.04.21 |
[Tomcat] 2. Set up a native lib (0) | 2016.04.21 |