ms-sql JDBC드라이버의 패키지명이 이상하게 바뀐거 같다..
술먹고 코딩한건지...
DriverClassName
com.microsoft.jdbc.sqlserver.SQLServerDriver --> com.microsoft.sqlserver.jdbc.SQLServerDriver
URL
jdbc:microsoft:sqlserver://xxx.xxx.xxx.xx:1433;DatabaseName=test --> jdbc:sqlserver://xxx.xxx.xxx.xxx:1433;DatabaseName=test
이것때문에 고생 좀 했다..
자바 5.0 이상은 2005 Driver를 사용해야 한다.
2000 --> msbase.jar, mssqlserver.jar, msutil.jar
2005 --> sqljdbc.jar
JEUSMain.xml
<?xml version="1.0" encoding="utf-8"?>
<jeus-system xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<node>
<name>devserver</name>
<engine-container>
<name>container1</name>
<!--
<command-option>-Djava.awt.headless=true -Xms1024m -Xmx1024m -Dproject.home=/home/athena/mindtix/mtsearch -Dmindtix.home=/home/athena/mindtix</command-option>
-->
<engine-command>
<type>servlet</type>
<name>engine1</name>
</engine-command>
<sequential-start>true</sequential-start>
<!--
<engine-command>
<type>ws</type>
<name>engine1</name>
</engine-command>
<engine-command>
<type>jms</type>
<name>engine1</name>
</engine-command>
<engine-command>
<type>ejb</type>
<name>engine1</name>
</engine-command>
-->
</engine-container>
<class-ftp>true</class-ftp>
<sequential-start>true</sequential-start>
<enable-webadmin>true</enable-webadmin>
<session-router-config>
<session-router>
<servlet-engine-name>engine1</servlet-engine-name>
</session-router>
</session-router-config>
<!-- logging -->
<system-logging>
<level>FINE</level>
<handler>
<file-handler>
<name>fileHandler</name>
<level>FINE</level>
<valid-day>1</valid-day>
</file-handler>
<console-handler>
<name>consoleHandler</name>
<level>FINE</level>
</console-handler>
</handler>
</system-logging>
</node>
<resource>
<data-source>
<!--
oracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleConnectionPoolDataSource
oracle.jdbc.xa.client.OracleXADataSource
-->
<!-- Oracle 1 -->
<database>
<vendor>oracle</vendor>
<export-name>jdbc/oracle1</export-name>
<data-source-class-name>
oracle.jdbc.xa.client.OracleXADataSource
</data-source-class-name>
<data-source-type>XADataSource</data-source-type>
<data-source-name>
oracle.jdbc.xa.client.OracleXADataSource
</data-source-name>
<driver-type>thin</driver-type>
<database-name>test1</database-name>
<port-number>1521</port-number>
<server-name>xxx.xxx.xxx.xxx</server-name>
<user>test1</user>
<password>test1</password>
<connection-pool>
<pooling>
<min>15</min>
<max>30</max>
<step>5</step>
<period>3600000</period>
</pooling>
<wait-free-connection>
<enable-wait>false</enable-wait>
<wait-time>10000</wait-time>
</wait-free-connection>
</connection-pool>
</database>
<!-- Oracle 2 -->
<database>
<vendor>oracle</vendor>
<export-name>jdbc/oracle2</export-name>
<data-source-class-name>
oracle.jdbc.xa.client.OracleXADataSource
</data-source-class-name>
<data-source-type>XADataSource</data-source-type>
<data-source-name>
oracle.jdbc.xa.client.OracleXADataSource
</data-source-name>
<driver-type>thin</driver-type>
<database-name>test2</database-name>
<port-number>1521</port-number>
<server-name>xxx.xxx.xxx.xxx</server-name>
<user>test2</user>
<password>test2</password>
<connection-pool>
<pooling>
<min>15</min>
<max>30</max>
<step>5</step>
<period>3600000</period>
</pooling>
<wait-free-connection>
<enable-wait>false</enable-wait>
<wait-time>10000</wait-time>
</wait-free-connection>
</connection-pool>
</database>
<!-- MySQL -->
<database>
<vendor>others</vendor>
<export-name>jdbc/mysql</export-name>
<data-source-class-name>
jeus.jdbc.driver.blackbox.BlackboxConnectionPoolDataSource
</data-source-class-name>
<data-source-type>
ConnectionPoolDataSource
</data-source-type>
<property>
<name>DriverClassName</name>
<type>java.lang.String</type>
<value>
com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
</value>
</property>
<property>
<name>URL</name>
<type>java.lang.String</type>
<value>
jdbc:mysql://xxx.xxx.xxx.xxx:3306/test
</value>
</property>
<property>
<name>User</name>
<type>java.lang.String</type>
<value>test</value>
</property>
<property>
<name>Password</name>
<type>java.lang.String</type>
<value>test</value>
</property>
<connection-pool>
<pooling>
<min>5</min>
<max>20</max>
<step>5</step>
<period>10</period>
</pooling>
<wait-free-connection>
<enable-wait>false</enable-wait>
<wait-time>10000</wait-time>
</wait-free-connection>
</connection-pool>
</database>
<!-- MS-SQL -->
<database>
<vendor>others</vendor>
<export-name>jdbc/mssql</export-name>
<data-source-class-name>
jeus.jdbc.driver.blackbox.BlackboxConnectionPoolDataSource
</data-source-class-name>
<data-source-type>
ConnectionPoolDataSource
</data-source-type>
<property>
<name>DriverClassName</name>
<type>java.lang.String</type>
<!-- jdbc 2000
<value>com.microsoft.jdbc.sqlserver.SQLServerDriver</value>
-->
<value>
com.microsoft.sqlserver.jdbc.SQLServerDriver
</value>
</property>
<property>
<name>URL</name>
<type>java.lang.String</type>
<!-- jdbc 2000
<value>jdbc:microsoft:sqlserver://xxx.xxx.xxx.xx:1433;DatabaseName=pubs</value>
-->
<value>
jdbc:sqlserver://xxx.xxx.xxx.xxx:1433;DatabaseName=test
</value>
</property>
<property>
<name>User</name>
<type>java.lang.String</type>
<value>test</value>
</property>
<property>
<name>Password</name>
<type>java.lang.String</type>
<value>test</value>
</property>
<connection-pool>
<pooling>
<min>5</min>
<max>20</max>
<step>5</step>
<period>10</period>
</pooling>
<wait-free-connection>
<enable-wait>false</enable-wait>
<wait-time>10000</wait-time>
</wait-free-connection>
</connection-pool>
</database>
</data-source>
</resource>
<!-- sample application 시작 -->
<application>
<name>sample1</name>
<path>C:\web\xxx\sample1</path>
<deployment-target>
<target>
<engine-container-name>
devserver_container1
</engine-container-name>
<web-context-group>
<name>MyGroup</name>
</web-context-group>
</target>
</deployment-target>
<deployment-type>COMPONENT</deployment-type>
<classloading>SHARED</classloading>
<web-component />
</application>
<application>
<name>RDServer</name>
<path>C:\web\xxx\RDServer</path>
<deployment-target>
<target>
<engine-container-name>
devserver_container1
</engine-container-name>
<web-context-group>
<name>MyGroup</name>
</web-context-group>
</target>
</deployment-target>
<deployment-type>COMPONENT</deployment-type>
<classloading>SHARED</classloading>
<web-component />
</application>
</jeus-system>
WEBMain.xml
<?xml version="1.0"?>
<web-container xmlns="http://www.tmaxsoft.com/xml/ns/jeus">
<context-group>
<group-name>MyGroup</group-name>
<print-error-to-browser>true</print-error-to-browser>
<jsp-engine>
<check-included-jspfile>true</check-included-jspfile>
</jsp-engine>
<session-config>
<timeout>1000</timeout>
<shared>true</shared>
</session-config>
<encoding>
<request-encoding>
<default>EUC-KR</default>
<forced>EUC-KR</forced>
</request-encoding>
<response-encoding>
<default>EUC-KR</default>
<forced>EUC-KR</forced>
</response-encoding>
<postdata-encoding>
<default>EUC-KR</default>
<forced>EUC-KR</forced>
</postdata-encoding>
</encoding>
<webserver-connection>
<http-listener>
<listener-id>http1</listener-id>
<port>8088</port>
<thread-pool>
<min>10</min>
<max>20</max>
<step>1</step>
</thread-pool>
</http-listener>
<!--
<webtob-listener>
<listener-id>webtob1</listener-id>
<port>9900</port>
<output-buffer-size>8192</output-buffer-size>
<thread-pool>
<min>30</min>
<max>30</max>
<step>1</step>
<max-idle-time>30000</max-idle-time>
</thread-pool>
<webtob-address>192.168.100.155</webtob-address>
<webtob-home>/app/tmax/webtob</webtob-home>
<registration-id>MyGroup</registration-id>
</webtob-listener>
<webtob-listener>
<listener-id>webtob2</listener-id>
<port>9901</port>
<output-buffer-size>8192</output-buffer-size>
<thread-pool>
<min>30</min>
<max>30</max>
<step>1</step>
<max-idle-time>30000</max-idle-time>
</thread-pool>
<webtob-address>192.168.100.156</webtob-address>
<webtob-home>/app/tmax/webtob</webtob-home>
<registration-id>MyGroup</registration-id>
</webtob-listener>
-->
</webserver-connection>
<logging>
<access-log>
<handler>
<file-handler>
<name>handler</name>
<level>INFO</level>
<valid-day>1</valid-day>
<buffer-size>1024</buffer-size>
</file-handler>
</handler>
</access-log>
</logging>
</context-group>
<session-cluster>
<session-routing>false</session-routing>
</session-cluster>
</web-container>
Driver
ojdbc14.jar
mysql-connector-java-5.0.5-bin.jar
http://dev.mysql.com/downloads/connector/j/5.0.html
sqljdbc.jar
'others' 카테고리의 다른 글
서블릿 보안 1 (0) | 2007.11.22 |
---|---|
개발 Flow Chart (0) | 2007.10.26 |
tree sample by extjs (0) | 2007.08.14 |
autocompleter by scriptaculous (6) | 2007.06.27 |
Ajax 고민중.. (0) | 2007.06.22 |