java连接池问题 把xml清一下,进tomcat控制台设置一下. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 参考一下,是不是得到了连接不放或者打开的游标(Statement)太多public boolean execute(String s) { Connection connection = getConnection(); Statement statement = null; boolean flag2; try { statement = connection.createStatement(); int i = statement.executeUpdate(s); if (i != 0) { boolean flag = true; return flag; } boolean flag1 = false; return flag1; } catch (SQLException sqlexception) { DebugWriter.writeDebug( "Exception in execute(String s) in " + sqlexception); flag2 = false; } finally { try { if (!connection.isClosed()) { connection.close(); } } catch (SQLException e) { DebugWriter.writeDebug( "Error in closing connection in execute() " + "of QueryProcessor " + e); } } return flag2;} 有没有哪位大哥有jBPM4的项目给俺look, look 为什么点一个按钮两个对话框都弹出来了? 求助:java去掉字符串中重复值,方法效率比较 参数的传递 问一下弱问题 struts 学习 求助 关于JAVA输出流的问题 《在线等》struts标记<html:link>谁用过,帮忙解决一个问题 EJB 调用sqlserver数据库的问题 请问java的applet和window的active在web上运行速度相比,哪一个快一些? Java中调用存储过程的一点问题,谢谢~ Validator的验证规则不用支持Bean中非String类型的字段吗
或者打开的游标(Statement)太多
public boolean execute(String s) {
Connection connection = getConnection();
Statement statement = null;
boolean flag2;
try {
statement = connection.createStatement();
int i = statement.executeUpdate(s);
if (i != 0) {
boolean flag = true;
return flag;
}
boolean flag1 = false;
return flag1;
} catch (SQLException sqlexception) {
DebugWriter.writeDebug(
"Exception in execute(String s) in " + sqlexception);
flag2 = false;
} finally {
try {
if (!connection.isClosed()) {
connection.close();
}
} catch (SQLException e) {
DebugWriter.writeDebug(
"Error in closing connection in execute() "
+ "of QueryProcessor "
+ e);
}
}
return flag2;
}