摘 要
即時通訊(Instant Messaging)是目前Internet上最為流行的通訊方式,各種各樣的即時通訊軟件也層出不窮;服務提供商也提供了越來越豐富的通訊服務功能。Java是當前比較流行的開發語言之一,它有著自己的易用特點與性能優勢,比如跨平臺、安全性、多線程、網絡Socket編程、數據流概念等方面,因此通過對開源即時通訊LinuxQQ的研究和分析,基于Java語言和J2EE規范設計了一個即時通訊工具JICQ (Java for I seek you),并對其體系結構、構成模塊及系統關鍵技術進行了分析與設計。在系統設計與建模過程中,使用了UML和面向對象的分析、設計方法,并使用Rose作為建模工具;本系統基于j2se1.5,j2ee1.4,使用Eclipse等作為開發工具,在開發過程中用到了時下流行的重構開發方法,優化了系統的設計。力圖使系統具有安全、高效、實用、支持在不同系統平臺運行等特點。
關鍵詞:即時通訊;多線程;SOCKET編程;JSP
Design and Development of a Simple Instant Communication Tool
Abstract
Instant Message is currently the most popular way to communicate on the Internet,so various Instant Messaging software are continuously appearing; Service providers offer more and more communication service nowadays. Java programming language (Java 2 Standard Edition) is one of popular programming languages. With its features of cross-platform, security, multi-threaded capability, Socket Programming, data flow concepts and so on, Java has its own distinctive and functional advantages. Therefore, based on the research and analysis of LinuxQQ, with the Java language and J2EE, this paper designs an instant messenger—JICQ (Java for I seek you), and then analyzes its architecture, modules, as well as its key technologies. During the design and modeling process of instant messenger system, the UML and method of object-oriented analysis and design are used. Furthermore, the modeling tool of Rose is included. Based on the system j2se1.5, j2ee1.4, the Eclipse development tool in the development process, and refactoring development method, the system design is optimized. Due to these factors, the system is safe, efficient and practical in different operating system platforms.