畢業論文
http://www.kj333.com/guest/hmhtml/hmlist31_1.htm
以下是我搜集的一些論文網站
你自己找一找吧!!
◆論文快車 http://www.lun-wen.com/ 提供論文資料收集、寫作指南、論文征稿,中國MBA、MPA、各類學術、畢業論文等資料。 484Gyi1
◆學生大論文中心 http://www.studa.com/newpaper/ 提供論文定做、發表等服務,內容涉及會計審計、財政稅收、計算機、經濟學、管理學、法學、理學、工學、醫學、文學等20個學術類別。 376HnV7
◆蜂朝論文網 http://www.51lunwen.com/subweb/thesis/main/index.asp提供畢業論文、本科論文、碩士論文等論文發表和定制等服務。 531hb9
◆教育教學論文網 http://www.minaol.com/gb/art/ttd/index.asp以教育論文為主,含信息技術、計算機、德育、素質教育、攝影、美術、化學、英語、語文、體育等方面論文。 815on7
◆中國園丁網論文大觀 http://www.teacher.net.cn/ 提供教育類論文。 203Fb2
◆法律論文資料庫 http://www.law-lib.com/lw/提供法學理論、憲法、行政法、刑法、民法、經濟法、司法制度、國際法等分類論文。 78Jg8
◆論文網 http://www.lunwen.net/提供論文寫作服務。 400Kxh8
◆吾愛論文網http://www.52paper.com/ 提供文理工管等十二大學科門類的期刊論文、畢業論文和職稱論文。 567wVAS6
◆幸福校園 http://www.happycampus.com.cn/ 論文、報告書、簡歷、考試情報等各種學術資料交流的中心。 36873o6
◆知新資訊http://www.paperscn.com/ 專業提供各種論文、課題資料,主要包括:教育論文、計算機論文、畢業論文、法律論文、學術論文、免費論文、碩士論文、研究生論文、博士論文、經濟論文、科技論文等。 203Ydu6
◆全程論文網 http://www.lunwen51.net/一個專業代理職稱論文、畢業論文、學術論文寫作指導、論文推薦公開刊物發表(核心、優秀期刊)的網站。 642pjiY2
◆論文商務中心http://doc.cei.gov.cn/ 是一個開放式的、保護版權的、網上論文精品自選超市。 127JoVq5
論文發表咨詢網 http://www.csepg.com/ 202wdx01
語言學論文http://chinese.pku.edu.cn/yuyinyj/shenjiong.htm 2252du8
◆論文資料網 http://www.51paper.net/ 提供論文資料服務的專業網站,含MBA論文資料、中小企業論文、物流供應鏈論文、財經論文、電子商務論文、論文參考資料。 1550x9
◆論文帝國 http://www.51paper.net/ 含論文查詢、發布論文及***外交、社會行政、勞動人事、新聞傳播、法律、財經等論文。 828Ol9
◆畢業論文網http://www.bylw.net/ 實施全免費畢業論文資料服務,不涉及向網友收費內容。 380JTi1
◆論文資料站 http://lwzl.com/免費為廣大學子提供論文資料查詢、交流的優良平臺。 662Y23z5
◆世界論文網 http://www.worldthesis.com/ 收集并接受委托,發布國際優秀作品(論文)。 92N64
◆中國論文網 http://www.lw99.com/ 提供大量專業論文、大學畢業論文,有各種層次的內容,特別適合各大專院校畢業生、社會各界論文愛好者和各機關人員作參考學習之用,免去您各方查找資料的麻煩。 719va7
◆天下網 http://txlw.com/ 論文老牌名站,由在讀博士、碩士生創辦。網站側重于為論文寫作者(尤其是對撰寫畢業論文的朋友)提供寫作指導。 2285Vg1
◆國際優秀論文http://txlw.com/ 分為科技論文、醫學論文、教育論文三大版塊。 43QOES3
臺灣博碩士論文資訊網 http://datas.ncl.edu.tw/theabs/1/ 231pEO1
論文網 http://lwdb.vip.sina.com/ 254VPJ2
大學生論文庫 http://www.syiae.com/lunwen/ 752if5
華夏論文網 http://hxlw.vip.sina.com/ 656191
論文薈萃http://www.oh100.com/teach/teacher/lunwen/ 261kpjs5
論文秘書網http://www.wenshu.net/ 869YD87
論文指導網 http://lunwen.zzcollege.net/ 739gG3
中國大學生論文網http://www.wenshu.net/ 697KC4
大學生論文資訊網 http://www.thesis4u.com/ 424ZzIL6
輕松論文網 http://www.paperease.com/ 72QHgm8
全國優秀博士學位論文評選 http://www.cdgdc.edu.cn/yxbslw/yxbslw.htm 4667wI1
體育教學論文http://pe.stedu.net/mywz/tyjx.htm 9891UX94
體育論文 http://www.zxty.net/product4.htm 303RMCE1
新科論文網http://www.xklw.com/# 4944f07
信息化教育論文 http://www.yxedu.net/it/lunwen.htm 283RBp1
農業論文 http://www.agrionline.net.cn/keji/lunwenzy/ 688mOMA8
中國總經理網論文集http://www.cnceo.com/school/lwj.asp 748YbJ6
工程論文服務網http://infobuild.vip.sina.com/ 948kBt63
金融論文在線 http://www.finance-cn.com/ 6635Zl7
才思論文網 http://thesis.xiloo.com/ 423l5PH8
論文資源網 http://lunw.vip.sina.com/ 44uI9G3
經濟論文 http://www.gjmy.com/jjlw.asp 723HES23
論文選萃http://www.chinampaonline.com/lunwen/ 543C76
活動教育研究論文http://www.21cae.net/activeteach/activearticle.htm 901heD1
畢業生論文庫 http://lib.blcu.edu.cn/dt1000/bys/bys.htm 3644l4
能源論文 http://www.china5e.com/dissertation/default.htm 297PG1
會計文苑-優秀論文 http://www.chinaacc.com/wenyuan/lunwen/ 901MS7
中國廣電技術論文 http://www.chinabctv.com/bctvlw/index.asp 820OJ07
教育教學論文交流網 http://www.minaol.com/gb/art/ttd/index.asp 178sxqw4
食品論文http://china-foods.net.cn/discourse.asp 170YcYB8
管理在線論文 http://www.hao3721.com/main.asp 22kaP8
中國科技論文在線 http://www.paper.edu.cn/home.jsp 960zUkA6
MBA論文全集 http://mba.001.com.cn/mbamba.htm 244u61
物理論文集 http://www.physicswd.com/ 620zwW1
中國交通技術論壇資料庫 http://www.tranbbs.com/article/ 620zwW1
中國路橋工程論文資料中心 http://www.lqzx.com/lunwen.htm 748tOd4
中國論文發表網http://www.fabiao.cn/ 884SQDc7
翰林論文網http://www.hlpaper.com900QBIk6
?
一個很不錯的數據庫連接池實現,備份之
import java.sql.*;
import java.io.*;
import java.util.*;
public class DBConnectionManager {
private static int clients = 0;
private static DBConnectionManager instance;
private Vector drivers = new Vector();
private PrintWriter log;
private Hashtable pools = new Hashtable();
public DBConnectionManager() {
init();
}
private void log(String msg) {
log.println(new java.util.Date() + ": " + msg);
}
/**
* 將文本信息與異常寫入日志文件
*/
private void log(Throwable e, String msg) {
log.println(new java.util.Date() + ": " + msg);
e.printStackTrace(log);
}
public static synchronized DBConnectionManager getInstance() {
if (instance == null) {
instance = new DBConnectionManager();
}
clients++;
return instance;
}
private void init() {
InputStream is = getClass().getResourceAsStream("/db.properties");
Properties dbProps = new Properties();
try {
dbProps.load(is);
}
catch (Exception e) {
System.err.println("Can not read the properties file. " +
"Make sure db.properties is in the CLASSPATH");
return;
}
loadDrivers(dbProps);
createPools(dbProps);
}
public void freeConnection(String name, Connection con) {
DBConnectionPool pool = (DBConnectionPool) pools.get(name);
if (pool != null) {
pool.freeConnection(con);
}
}
public Connection getConnection(String name) {
DBConnectionPool pool = (DBConnectionPool) pools.get(name);
if (pool != null) {
return pool.getConnection();
}
return null;
}
public Connection getConnection(String name, long time) {
DBConnectionPool pool = (DBConnectionPool) pools.get(name);
if (pool != null) {
return pool.getConnection(time);
}
return null;
}
public synchronized void release() {
// 等待直到最后一個客戶程序調用
if (--clients != 0)
{
return;
}
Enumeration allPools = pools.elements();
while (allPools.hasMoreElements())
{
DBConnectionPool pool = (DBConnectionPool)allPools.nextElement();
pool.release();
}
Enumeration allDrivers = drivers.elements();
while (allDrivers.hasMoreElements())
{
Driver driver = (Driver) allDrivers.nextElement();
try {
DriverManager.deregisterDriver(driver);
log("撤銷JDBC驅動程序 " + driver.getClass().getName()+"的注冊");
}
catch (SQLException e) {
log(e, "無法撤銷下列JDBC驅動程序的注冊: " + driver.getClass().getName());
}
}
}
/*
drivers=sun.jdbc.odbc.JdbcOdbcDriver jdbc.idbDriver
logfile=D:\\user\\src\\java\\DBConnectionManager\\log.txt
idb.url=jdbc:idb:c:\\local\\javawebserver1.1\\db\\db.prp
idb.maxconn=2
access.url=jdbc:odbc:demo
access.user=demo
access.password=demopw
*/
private void loadDrivers(Properties props) {
String driverClasses = props.getProperty("drivers");
StringTokenizer st = new StringTokenizer(driverClasses);
while (st.hasMoreElements()) {
String driverClassName = st.nextToken().trim();
try {
Driver driver = (Driver)
Class.forName(driverClassName).newInstance();
DriverManager.registerDriver(driver);
drivers.addElement(driver);
// Log.log("Registered JDBC driver " + driverClassName);
}
catch (Exception e) {
// Log.log("Can not register JDBC driver: " + driverClassName + ", Exception: " + e.toString()));
}
}
}
private void createPools(Properties props) {
Enumeration propNames = props.propertyNames();
while (propNames.hasMoreElements())
{
String name = (String) propNames.nextElement();
if (name.endsWith(".url"))
{
String poolName = name.substring(0, name.lastIndexOf("."));
String url = props.getProperty(poolName + ".url");
if (url == null) {
// Log.log("No URL specified for " + poolName);
continue;
}
String user = props.getProperty(poolName + ".user");
String password = props.getProperty(poolName + ".password");
String maxconn = props.getProperty(poolName + ".maxconn", "0");
int max;
try {
max = Integer.valueOf(maxconn).intValue();
}
catch (NumberFormatException e) {
// Log.log("Invalid maxconn value " + maxconn + " for " + poolName);
max = 0;
}
DBConnectionPool pool =
new DBConnectionPool(poolName, url, user, password, max);
pools.put(poolName, pool);
// Log.log("Initialized pool " + poolName);
}
}
}
class DBConnectionPool {
private int checkedOut;
private Vector freeConnections = new Vector();
private int maxConn;
private String name;
private String password;
private String URL;
private String user;
/**
* 創建新的連接池
*
* @param name 連接池名字
* @param URL 數據庫的JDBC URL
* @param user 數據庫帳號,或 null
* @param password 密碼,或 null
* @param maxConn 此連接池允許建立的最大連接數
*/
public DBConnectionPool(String name, String URL, String user
, String password, int maxConn)
{
this.name = name;
this.URL = URL;
this.user = user;
this.password = password;
this.maxConn = maxConn;
}
/**
* 將不再使用的連接返回給連接池
*
* @param con 客戶程序釋放的連接
*/
public synchronized void freeConnection(Connection con) {
// 將指定連接加入到向量末尾
freeConnections.addElement(con);
checkedOut--;
notifyAll();
}
/**
* 從連接池獲得一個可用連接.如沒有空閑的連接且當前連接數小于最大連接
* 數限制,則創建新連接.如原來登記為可用的連接不再有效,則從向量刪除之,
* 然后遞歸調用自己以嘗試新的可用連接.
*/
public synchronized Connection getConnection()
{
Connection con = null;
if (freeConnections.size() > 0)
{
// 獲取向量中第一個可用連接
con = (Connection) freeConnections.firstElement();
freeConnections.removeElementAt(0);
try {
if (con.isClosed())
{
log("從連接池" + name+"刪除一個無效連接");
// 遞歸調用自己,嘗試再次獲取可用連接
con = getConnection();
}
}
catch (SQLException e)
{
log("從連接池" + name+"刪除一個無效連接");
// 遞歸調用自己,嘗試再次獲取可用連接
con = getConnection();
}
}
else if (maxConn == 0 || checkedOut < maxConn)
{
con = newConnection();
}
if (con != null) {
checkedOut++;
}
return con;
}
/**
* 從連接池獲取可用連接.可以指定客戶程序能夠等待的最長時間
* 參見前一個getConnection()方法.
*
* @param timeout 以毫秒計的等待時間限制
*/
public synchronized Connection getConnection(long timeout)
{
long startTime = new java.util.Date().getTime();
Connection con;
while ((con = getConnection()) == null)
{
try {
wait(timeout);
}
catch (InterruptedException e) {}
if ((new java.util.Date().getTime() - startTime) >= timeout)
{
// wait()返回的原因是超時
return null;
}
}
return con;
}
/**
* 關閉所有連接
*/
public synchronized void release()
{
Enumeration allConnections = freeConnections.elements();
while (allConnections.hasMoreElements())
{
Connection con = (Connection) allConnections.nextElement();
try {
con.close();
log("關閉連接池" + name+"中的一個連接");
}
catch (SQLException e) {
log(e, "無法關閉連接池" + name+"中的連接");
}
}
freeConnections.removeAllElements();
}
/**
* 創建新的連接
*/
private Connection newConnection()
{
Connection con = null;
try {
if (user == null) {
con = DriverManager.getConnection(URL);
}
else {
con = DriverManager.getConnection(URL, user, password);
}
log("連接池" + name+"創建一個新的連接");
}
catch (SQLException e) {
log(e, "無法創建下列URL的連接: " + URL);
return null;
}
return con;
}
}
}
| ||||
|
| ||||
|