對於不同團隊協同開發大型的應用程式,常會面臨應用程式自行處理例外事件而未正確回報用戶之執行結果與無法得知封閉式類別庫內部詳細呼叫流程,導致偵錯不易的困擾。有鑒於此,本研究將實作一個工具,利用Aspect-Oriented Programming(AOP)特性,將AspectJ織入JDBC驅動程式並賦予存取紀錄儲存之功能,既可免除應用程式本身未針對資料庫儲存存取紀錄的問題,直接儲存所有存取紀錄,亦不影響資料庫操作,更可以分辦造成錯誤發生的程式以釐清問題,有效幫助偵錯。此工具適用於任何使用JDBC介面去存取資料庫管理系統(DBMS)之JAVA應用程式,它能在不影響應用程式的情況下客製化儲存應用程式透過JDBC驅動程式連結資料庫管理系統(DBMS)的存取紀錄,並利用存取紀錄進行分析並複製存取行為,以提供更豐富的資訊進一步協助偵錯。 / When using a large database application which is jointly designed by different teams, the administrators are often confronted with a problem that the application handles the exception spontaneously and often fails to report back the result of user’s execution. Therefore, the administrator can’t be informed of the details of the calling flow in case of exceptions. This will make it not only difficult to find which part of the application goes wrong, but also hard to fix. To resolve this problem, this thesis designs and implements an aspect-based debugging tool for such database applications. The key idea behind the tool is that, instead of adapting the large application for logging database access activities, we target at the JDBC driver and make JDBC driver capable of saving access log. This tool works for any JAVA applications that use JDBC interface to access database. Without any modification to the user-level application, this tool can save the access log obtained by application which use JDBC driver to connect the database, and the administrator can customize the access log. By analyzing the access records and duplicating the access behavior, this tool provides more information to further assist in application debugging.
Identifer | oai:union.ndltd.org:CHENGCHI/G0095971019 |
Creators | 張妏瑛, Chang, Wen Ying |
Publisher | 國立政治大學 |
Source Sets | National Chengchi University Libraries |
Language | 中文 |
Detected Language | English |
Type | text |
Rights | Copyright © nccu library on behalf of the copyright holders |
Page generated in 0.0019 seconds