码迷,mamicode.com
首页 >  
搜索关键字:connection timeout    ( 9722个结果
java数据库连接池性能对比
这个测试的目的是验证当前常用数据库连接池的性能。testcase Connection conn = dataSource.getConnection(); PreparedStatement stmt = conn.preparedStatement("select 1"); ResultS...
分类:数据库   时间:2014-08-05 21:47:40    阅读次数:357
使用hudson时遇到的ssh上传问题
1、端口问题造成的连接失败 remote-prepare: ??[sshexec]?Connecting?to?123.123.123.123:22 java.net.ConnectException:?Connection?timed?out 解决办法 修改build.xml,配置端口号? <target?name="rem...
分类:其他好文   时间:2014-08-05 19:39:00    阅读次数:202
Spring 数据源
1、使用org.springframework.jdbc.datasource.DriverManagerDataSource说明:DriverManagerDataSource建立连接是只要有连接就新建一个connection,根本没有连接池的作用。 2、使用or...
分类:编程语言   时间:2014-08-05 18:14:39    阅读次数:228
JDBC 数据库异常 Exception 关闭的(语句,连接,ResultSet)
如果在rs.next()之前关闭了Statement或PreparedStatement,会导致下面的异常:java.sql.SQLException: 关闭的语句: next如果在rs.next()之前关闭了Connection,会导致下面的异常:java.sql.SQLException: 关闭...
分类:数据库   时间:2014-08-05 13:20:49    阅读次数:235
jquery总结
一、$表示jquery对象 二、样本 1.ajax进行json交互 $.ajax({ url : path+"expressDic.do?parentId=" + parentId, type : ‘post‘, dataType : ‘json‘, timeout : 5000, error : function() { alert(‘加载数据异常,...
分类:Web程序   时间:2014-08-05 11:41:29    阅读次数:226
How to find friends
How to find friends思路简单,编码不易 1 def check_connection(network, first, second): 2 link_dictionary = dict() 3 4 for link in network: 5 dr...
分类:其他好文   时间:2014-08-05 11:02:19    阅读次数:245
SSH Secure Shell Client--- the host may be dow
the host may be down,or there may be a problem with the network connection.Sometimes such problems can also be caused by a misconfigured firewall.遇到这样...
分类:其他好文   时间:2014-08-05 00:19:28    阅读次数:454
解析xml文件
package com.cn.javaSE.dom4j;import java.io.File;import java.io.FileWriter;import java.io.IOException;import java.sql.Connection;import java.sql.Prepar...
分类:其他好文   时间:2014-08-04 20:58:47    阅读次数:315
JDBC连接池C3P0
连接池 1)传统方式找DriverManager要连接,数目是有限的。 2)传统方式的close(),并没有将Connection重用,只是切断应用程序和数据库的桥梁,即无发送到SQL命令到数据库端执行 3)项目中,对于Connection不说,不会直接使用DriverManager取得,而使用连接池方式。 4)DBCP和C3P0,都是Java开源的,都必须直接或间接实现javax.sql.DataSource接口 5)DBCP连接池需要dbcp.propertie...
分类:数据库   时间:2014-08-04 17:42:28    阅读次数:287
ACE常用类及对应的头文件
定时器 ACE_Reactor::instance()->handle_events()         #include "ace/Reactor.h" ACE_Event_Handler    #include "ace/Event_Handler.h" int ACE_Event_Handler::handle_timeout(const ACE_Time_Value &curre...
分类:其他好文   时间:2014-08-04 14:34:47    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!