Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
youlq
CJSDN高级会员 发贴: 260 积分: 95 |
于 2003-03-06 11:00
应该是调整Weblogic JDBC Pool size。 |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
jameszhang
CJSDN高级会员 发贴: 1594 积分: 111 |
于 2003-03-06 11:59
调整WEBLOGIC JDBCSOURCE 后,情况好转,但还有极限,过极限就抛错 |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
SimonLei
CJSDN高级会员 发贴: 288 积分: 100 |
于 2003-03-06 12:26
jameszhang wrote: 你的代码当中,使用完Connection之后,没有及时关闭。 这样就算把pool设得再大,都没有用的。 You may say I am a dreamer, But I am not the only one. My blog+wiki: http://blogsite.3322.org/ |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
SimonLei
CJSDN高级会员 发贴: 288 积分: 100 |
于 2003-03-06 14:30
把jdbcFactory 的 time out设长一点试试看 You may say I am a dreamer, But I am not the only one. My blog+wiki: http://blogsite.3322.org/ |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
jameszhang
CJSDN高级会员 发贴: 1594 积分: 111 |
于 2003-03-06 16:37
把jdbcFactory 的 time out设长一点试试看 --------------------------------------------------------------- 怎样设置?能详细说吗?谢谢! |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
SimonLei
CJSDN高级会员 发贴: 288 积分: 100 |
于 2003-03-06 18:37
jameszhang wrote: http://java.sun.com/products/jdbc/jdbc2_0_1-stdext-javadoc/javax/sql/DataSource.html void setLoginTimeout(int seconds) Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. You may say I am a dreamer, But I am not the only one. My blog+wiki: http://blogsite.3322.org/ |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
jameszhang
CJSDN高级会员 发贴: 1594 积分: 111 |
于 2003-03-06 20:13
setLoginTimeout()我用了 放在 this.jdbcFactory = (javax.sql.DataSource) c.lookup("myData"); 之前 却直接抛出NULL异常 不知道放在那里比较合适? |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
SimonLei
CJSDN高级会员 发贴: 288 积分: 100 |
于 2003-03-06 20:53
why not try it before you ask? You may say I am a dreamer, But I am not the only one. My blog+wiki: http://blogsite.3322.org/ |
作者 | Re:谁解决过这样的问题? [Re:jameszhang] |
SimonLei
CJSDN高级会员 发贴: 288 积分: 100 |
于 2003-03-06 21:51
If you put it before the this.jdbcFactory = (javax.sql.DataSource)c.lookup("myData"); the jdbcFactory is null, of course it will throw exception. why not put it after the line? You may say I am a dreamer, But I am not the only one. My blog+wiki: http://blogsite.3322.org/ |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |