???请指点·Weblogic5.1的配置文件中,TXDataSource和DataSource有什么区别?
请看19行,TXDataSource和DataSource有什么区别?
把它换成DataSource在EJB中也可以lookup到;
不知道换成DataSource使用会有什么不同?
请指点·
01# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
02# WEBLOGIC DEMO CONNECTION POOL PROPERTIES
03# -------------------------------------------------
04# CLUSTER USERS: Note that ALL JDBC connection pools should be set up
05# in the *per-cluster* properties file ONLY.
06#
07# This connection pool uses the sample Cloudscape database shipped
08# with WebLogic. Used by the EJBean, JHTML, JSP and JMS examples.
09# Uncomment to use:
10weblogic.jdbc.connectionPool.demoPool=\
11 url=jdbc:cloudscape:demo,\
12 driver=COM.cloudscape.core.JDBCDriver,\
13 initialCapacity=1,\
14 maxCapacity=2,\
15 capacityIncrement=1,\
16 props=user=none;password=none;server=none
17#
18# Add a TXDataSource for the connection pool:
19weblogic.jdbc.TXDataSource.weblogic.jdbc.jts.demoPool=demoPool
20#
21# Add an ACL for the connection pool:
22weblogic.allow.reserve.weblogic.jdbc.connectionPool.demoPool=everyone