修改\bea\wlserver6.0\config\mydomain下的config.xml,另入如下行(连接MYSQL): <JDBCConnectionPool
CapacityIncrement="5"
DriverName="org.gjt.mm.mysql.Driver"
InitialCapacity="10"
MaxCapacity="100"
Name="j2ee-examples-demoPool"
Properties="user=root;password=yourpassword"
RefreshMinutes="0"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true"
Targets="myserver"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false"
URL="jdbc:mysql://localhost/j2ee_sample"
/> <JDBCDataSource
JNDIName="jdbc/j2ee_sample"
Name="jdbc/j2ee_sample"
PoolName="j2ee-examples-demoPool"
Targets="myserver"
/>
CapacityIncrement="5"
DriverName="org.gjt.mm.mysql.Driver"
InitialCapacity="10"
MaxCapacity="100"
Name="j2ee-examples-demoPool"
Properties="user=root;password=yourpassword"
RefreshMinutes="0"
ShrinkPeriodMinutes="15"
ShrinkingEnabled="true"
Targets="myserver"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false"
URL="jdbc:mysql://localhost/j2ee_sample"
/> <JDBCDataSource
JNDIName="jdbc/j2ee_sample"
Name="jdbc/j2ee_sample"
PoolName="j2ee-examples-demoPool"
Targets="myserver"
/>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货