@@@EJB的连接问题@@@ DataSource是你在服务器上配的。比如weblogic,websphere,tomcat5.0(好像不好用)都可以配自己,在那里指定你的数据库类型什么的一大堆乱七八糟的东西的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 比如在WebLogic7控制台配置Connection Pool和Data Source后,其中的config.xml文件加了类似如下的一段: <JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver" LoginDelaySeconds="3" MaxCapacity="100" Name="MyJDBC Connection Pool" Password="{3DES}533McA2fPIk=" Properties="user=2134" RefreshMinutes="2" Targets="myserver" TestConnectionsOnRelease="true" TestConnectionsOnReserve="true" TestTableName="tab" URL="jdbc:oracle:thin:@printer:1521:oemrep" XAPassword="{3DES}533McA2fPIk="/> <JDBCDataSource JNDIName="orapool" Name="MyJDBC Data Source" PoolName="MyJDBC Connection Pool" RowPrefetchEnabled="true" Targets="myserver"/>然后DataSource ds = (DataSource) ctx.lookup("orapool"); jsp文件错误,如何改呀 请教一个Checkbox 获得选中值Id的问题 spring怎样在service层控制事务呢? hibernate插入数据,求高手赐教,让我的数据插入的快一点 请教ADF教材 求p2p推荐书籍 Tivoli Directory Server的LDAP分页查询怎么写? 我不想写servelet ,jsp 代码 , 请问,j2ee世界是不是就是以这两者为基础得? Tomcat容器下JSP文件的运行问题(很菜的问题) 为什么我启动J2EE时会发生错误! Java初学者,问题就很菜了。希望各位过来人指点? weblogic中能否使用mysql的连接池
<JDBCConnectionPool DriverName="oracle.jdbc.driver.OracleDriver"
LoginDelaySeconds="3" MaxCapacity="100"
Name="MyJDBC Connection Pool" Password="{3DES}533McA2fPIk="
Properties="user=2134" RefreshMinutes="2" Targets="myserver"
TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
TestTableName="tab" URL="jdbc:oracle:thin:@printer:1521:oemrep" XAPassword="{3DES}533McA2fPIk="/>
<JDBCDataSource JNDIName="orapool" Name="MyJDBC Data Source"
PoolName="MyJDBC Connection Pool" RowPrefetchEnabled="true" Targets="myserver"/>然后
DataSource ds = (DataSource) ctx.lookup("orapool");