'WEB-INF'에 해당되는 글 916건

[Tomcat] 7.Host

WAS/Tomcat 2016. 4. 25. 18:20
donaricano-btn

Host


1. Composition

1_1. server.xml

<Engine name="Catalina" defaultHost="localhost">

 <Host name="localhost"  appBase="webapps"

            unpackWARs="true" autoDeploy="true">

1_2. Add a host

<Host name="myhost"  appBase="webapps2"

            unpackWARs="true" autoDeploy="true">


2. Characteristic

2_1. The application will be called by each address

        

        
 

 [source:https://www.youtube.com/channel/UCSDurTMDxYJT1qVL4ERelKg]


3. Example

3_1. server.xml


3_2. To set up a hosts

a. Case of Window

- c:\windows\System32\drivers\etc\hosts


b. Case of Linux

- etc/hosts


3_3. Application's location

3_4. Execution

- http://www.myserver.com:8080

- http://mail.myserver.com:8080


4. Host manager

4_1. config

<role rolename="admin-gui"/>
<user username="tomcat" password="s3cret" roles="admin-gui"/>






        




        




          




'WAS > Tomcat' 카테고리의 다른 글

[Tomcat] 2. 설치이후 환경설정  (0) 2017.08.20
[Tomcat] 1. 설치환경 및 설치  (2) 2017.08.20
[Tomcat] 6. Interwork DB  (0) 2016.04.24
[Tomcat] 5. Batch - Parallel deployment  (0) 2016.04.24
[Tomcat] 4. Batch  (0) 2016.04.22
블로그 이미지

리딩리드

,
donaricano-btn

Screen English

Mavis : Maybe if Dennis grow up away from Transylvania,

he won't be so freaky. Like me

Johnny : Are you nuts?

 Mavis, you're so a blast

 You're so full of life and curious about everything

        

Mavis : 데니그가 트란실바니아에서 멀리 떨어져 자란다면 기이한 모습이 되진 않을거야

나처럼

Johnny : 무슨 말도 안되는 소리야?

             마비스, 넌 정말 멋져.

항상 에너지가 넘치고, 모든 일에 호기심이 많지

 

넌 정말 생기발랄해

- You have so much life energy

- You're super effervescent


Kiss English

Dialogue 1

A: I might be breaking up

(나 헤어지게 될지도 몰라)

B:  Don't stay in a bad relationship that hurts you

(너를 망치는 안 좋은 관계는 유지하지마)


Dialogue 2

A: I might make an investment

(나 투자를 할지도 몰라)

B: Don't do something that you'll regret later

(나중에 후회하게 될 일을 하지는 마)


Dialogue 3

A: What are you trying to say?

(무슨말 하려는 거야?)

B:Don't pretend that you don't know what I mean

(내말 못알아 듣는척 하지마)

'English > GMP.2016' 카테고리의 다른 글

[GMP] We don't hate humans anymore  (0) 2016.04.28
[GMP] I've don't think you let them into your heart  (0) 2016.04.26
[GMP] It's how I was taught  (0) 2016.04.21
[GMP] He was just being silly  (0) 2016.04.20
[GMP] I'm too old for this  (0) 2016.04.18
블로그 이미지

리딩리드

,
donaricano-btn

Interwork DB


1. JDBC Connection pool

a. JVM sent a session to DB to use a SQL 

b.  And then There will be made a Connection pool between JVM and DB



2. Config Connection pool

- Context.xml

<Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource"

               maxActive="50" maxIdle="30" maxWait="10000"

               username="mysqluser" password="mysqlpassword" 

               driverClassName="com.mysql.jdbc.Driver"

               url="jdbc:mysql://localhost:3306/testdb"/>


3. JDBC Driver

- We have to set up a JDBC Driver

a. setenv

#JDBC Driver Classpath

CLASSPATH=/app/lib/jdbc.jar


b. lib

CATALINA_HOME/lib/jdbc.jar


4. JNDI Look up

a. context.xml

<Resource name="jdbc/test" ..../>

b. web.xml

<resource-ref>

<res-ref-name>jdbc/text</res-ref-name>

<res-type>javax.sql.DataDource</res-type>

<res-auth>Container</res-auth>

</resouce-ref>

c. java source

ds = ctx.lookup("java:comp/env/jdbc/test")


5. Tomcat + Spring + Mybatis?


a. context.xml


b. app.propertes

c. context-datasource.xml(JNDI Config)

d. context-sqlmap.xml

e. sql-ers-map-config.xml







'WAS > Tomcat' 카테고리의 다른 글

[Tomcat] 1. 설치환경 및 설치  (2) 2017.08.20
[Tomcat] 7.Host  (0) 2016.04.25
[Tomcat] 5. Batch - Parallel deployment  (0) 2016.04.24
[Tomcat] 4. Batch  (0) 2016.04.22
[Tomcat] 3. Config  (0) 2016.04.21
블로그 이미지

리딩리드

,
donaricano-btn

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
블로그 이미지

리딩리드

,