1、 1 学士学位论文 论文题目: 局域网聊天系统的设计与实现 院(部)名 称: 计算机科学与工程学院 学 生 姓 名: 学 号: 20122115 专 业: 软件工程 指 导 教 师: I 摘摘 要要 随着互联网的不断进步和发展, 网络通信在人们的生活中占据着越来越重要的地 位。 网络聊天工具已在不断更新换代, 越来越多的聊天工具都有着很多的广泛的应用。 对于人们,网上即时聊天已成为一种相互沟通的重要方式,网络上购物更是一种方便 生活的理想选择。 本文通过对客户端/服务器与浏览器/服务器架构的特点进行分析, 再结合系统的 实际情况考虑, 采用一种全新的C/S与B/S混合模式架构对局域网聊天系统进
2、行设计, 简要介绍了系统的每个功能模块的设计与实现。 本系统采用 Java 语言,在 myEclipse 工具上开发,采用 Oracle 11 数据库来对数 据进行支撑。在聊天子系统中,采用 java 中 Socket 强大的网络编程功能,是实现客 户端与服务器端相互通信的桥梁;采用 IO 流来对数据的传输与访问;用 Java 提供的 多线程功能实现点对点与点对多聊天。在 Web 前端子系统和 Chat 后台管理中,采用 Strut2 框架来实现系统的业务逻辑,使用强大功能的 OGNL 标签来对参数进行传递; 采用 Hibernate 框架来对数据库进行操作,它的对象/关系数据库映射特点,在使
3、用 时只需要操作对象,使得开发更具有对象化。局域网聊天系统的实现,意味着一个具 有聊天、购物、后台管理的多功能系统的完成。 【关键字】局域网聊天系统,购物,java,socket,框架 2 ABSTRACT With the progress and development of the Internet, network communication in the life of people occupies a more and more important position.Network chat tool has been constantly upgrading, more and
4、 more chat tool has a lot of widely used.For people, online instant messaging has become an important way to communicate, shopping on the Internet is the ideal choice for a convenient life. Based on client/server and browser/server architecture is analyzed, the characteristics of the actual situatio
5、n of combining system considering, using a new kind of C/S and B/S mixed mode architecture for LAN chat system design, this paper briefly introduces the system design and realization of each function module. This system USES Java language, the myEclipse development tools, the Oracle 11 database to s
6、upport data.In chat subsystem, using Java Socket in the powerful network programming, is the realization of client and server as a bridge to communicate with each otherAdopting the IO streams to the data transmission and access;With the multi-threaded functionality provided by the Java implementation point to point and point to chat more.In the Web front-end subsystem and Chat backstage management, adopting Strut2 framework to