jeus와 db연동 (data-source) jeus。
경로 : C:\TmaxSoft\JEUS5.0\config\컴퓨터이름
JEUSMain.xml 을 편집하여,
색깔부분을 추가하고,
굵은 글씨 표시 해준 부분에 해당하는 정보를 수정해주면 된다.
생각보다 간단한 설정.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<?xml version="1.0" encoding="utf-8"?>
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<node>
...
</node>
<application>
...
</application>
<resource>
<data-source>
<database>
<vendor>oracle</vendor>
<export-name>연결할 jdbc명</export-name>
<data-source-class-name>
oracle.jdbc.pool.OracleConnectionPoolDataSource
</data-source-class-name>
<data-source-type>ConnectionPoolDataSource</data-source-type>
<database-name>DB명(tnsname)</database-name>
<data-source-name>oracle.jdbc.pool.OracleDataSource</data-source-name>
<port-number>1521</port-number>
<server-name>IP</server-name>
<user>ID</user>
<password>PASSWORD</password>
<driver-type>thin</driver-type>
<connection-pool>
<pooling>
<min>3</min>
<max>30</max>
<step>1</step>
<period>5</period>
</pooling>
<wait-free-connection>
<enable-wait>true</enable-wait>
<wait-time>60000</wait-time>
</wait-free-connection>
<max-use-count>30</max-use-count>
</connection-pool>
</database>
</data-source>
</resource>
</jeus-system>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
실제 context를 사용하기 위한,
jeus-web-dd.xml 의 설정.
굵은 글씨 부분 수정.
(경로 : C:\TmaxSoft\JEUS5.0\webhome\admin_home\WEB-INF
안에 jeus-web-dd.xml의 깔끔한 파일을 데려갈수 있음.
수정한 파일은,
경로 : C:\workspace\kmahr\WEB-INF
아래에 안착시켜놓았다-ㅁ -a)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<?xml version="1.0" encoding="UTF-8"?>
<jeus-web-dd xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<context-path>/컨텍스트명</context-path>
<enable-jsp>true</enable-jsp>
<auto-reload>
<enable-reload>false</enable-reload>
<check-on-demand>false</check-on-demand>
</auto-reload>
<max-instance-pool-size>-1</max-instance-pool-size>
<url-rewriting>false</url-rewriting>
<enable-default-login>false</enable-default-login>
<webinf-first>false</webinf-first>
<jndi-properties>
<local-bindings>false</local-bindings>
</jndi-properties>
</jeus-web-dd>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
이 글은 스프링노트에서 작성되었습니다.