一、通过JDBC配置数据源:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
<jdbc-ds-configs>
<jdbc-ds-config>
<name>hemei</name>
<db-type>9</db-type>
<connection-url>jdbc:mysql://localhost:3306/hemei</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<user-name>root</user-name>
<password>root</password>
<db-charset>GBK</db-charset>
<client-charset>GBK</client-charset>
<extend-properties />
</jdbc-ds-config>
</jdbc-ds-configs>
二、通过JNDI配置数据源:
<config>
<name>JNDIPrefix</name>
<value></value>
</config>
<config>
<name>dataSource</name>
<value>mysql_dataSource,mysql,GBK;</value>
</config>