基于JAVA的企业级即时平台设计与实现 - 图文

2019-05-24 12:50

中南大学学士论文 基于JAVA的企业级即时通信平台设计与实现

中 南 大 学

本科生毕业论文(设计)

题 目 基于JAVA的企业级即时

通讯平台设计与实现

学生姓名 胡海亮 指导教师 马本江 学 院 商学院 专业班级 信息管理及信息系统0601 完成时间 2010年5月

?

I

中南大学学士论文 基于JAVA的企业级即时通信平台设计与实现

目 录

摘 要 ........................................................................................................................... 1 Abstract .......................................................................................................................... 2 第一章 绪 论 ............................................................................................................ 3

1.1本文研究背景及意义 ..................................................................................... 3

1.1.1本文研究背景 ...................................................................................... 3 1.1.2本文研究意义 ...................................................................................... 3 1.2 国内外即时通讯发展状况 ............................................................................ 4 1.3本文内容及结构 ............................................................................................. 5 第二章 相关技术理论概述 ......................................................................................... 7

2.1即时通讯常用技术简介 ................................................................................. 7 2.2 EIM通信系统相关技术 .................................................................................. 8

2.2.1 TCP/IP与UDP简介 .............................................................................. 8 2.2.2 Mina通信框架简介 ............................................................................. 9 2.2.3 XML解析简介 .................................................................................... 10 2.2.4 Hibernate框架简介 ........................................................................... 12 2.2.5 Swing美工技术 .................................................................................. 13

第三章 EIM系统通信协议设计 ................................................................................ 16

3.1 EIM系统网络结构 ........................................................................................ 16 3.2 EIM系统通信协议分析 ................................................................................ 16

3.2.1现行常用即时通信协议 .................................................................... 16 3.2.2 EIM通信协议分析 ............................................................................. 17 3.3 EIM系统协议设计 ........................................................................................ 17

3.3.1 消息结构设计 ................................................................................... 17 3.3.2 消息详细设计 ................................................................................... 18 3.3.3 EIM通信协议总结 ............................................................................. 23

第四章 EIM服务器设计与实现 ................................................................................ 25

4.1 EIM服务器分析 ............................................................................................ 25

4.1.1 EIM服务器可行性分析 ..................................................................... 25 4.1.2 EIM服务器需求分析 ......................................................................... 26 4.2 EIM服务器设计 ............................................................................................ 30

4.2.1服务器总体设计 ................................................................................ 30 4.2.2服务器数据库设计 ............................................................................ 31 4.2.3服务器详细设计 ................................................................................ 32 4.3 EIM服务器运行界面展示 ............................................................................ 36 第五章 EIM客户端设计与实现 ................................................................................ 37

5.1 EIM客户端分析 ............................................................................................ 37

5.1.1 EIM客户端可行性分析 ..................................................................... 37 5.1.2 EIM需求分析需求分析 ..................................................................... 37

II

中南大学学士论文 基于JAVA的企业级即时通信平台设计与实现

5.2 EIM客户端设计 ............................................................................................ 38

5.2.1客户端总体设计 ................................................................................ 38 5.2.2客户端详细设计 ................................................................................ 39 5.3EIM客户端界面展示 ..................................................................................... 42 第六章 结 论 ........................................................................................................... 43 结束语 ......................................................................................................................... 45 参考文献 ..................................................................................................................... 46 附 录 ......................................................................................................................... 47

III

中南大学学士论文 基于JAVA的企业级即时通信平台设计与实现

摘 要

即时通讯(IM:Instant Messenger)软件是我国目前上网用户使用率最高的软件之一,即时通讯系统(Instant Messaging system)可使人们在网上识别在线用户并与之实时交流。通过IM我们可以达到即时和沟通[1]。

在现代化的企业中,员工在工作时经常要与其他同事进行协同工作和跨部门合作,全方位地利用有限资源协同完成更多工作,因此各部门同事间需要进行即时的沟通。而很多公司内部员工的沟通是基于Email、电话、短信、传真。大公司在通信费用上的花销绝对不是个小数目,尤其是那些跨地域分公司众多的企业这块尤其突出。在竞争如此激烈的社会,企业节约这部分费用也是利率提高的手段。

本文对企业即时通讯系统所涉及的技术问题进行了比较系统的研究,针对即时通讯的特点,运用Java、Apache的开源通信框架Mina(Multipurpose Infrastructure for Network Applications)以及Mysql开发一个在基于TCP/IP面向连接的企业内部沟通平台。主要在一下几个方面做了研究:

① 通信框架Mina。用Apache的开源通信框架Mina作为本系统的应用层,通信连接类都是在Mina的基础上封装而成。

② Java技术。在系统中大量运用Java中的Swing、多线程,IO流,集合框架以及众多的设计模式

③ 数据持久。系统中运用了Mysql作为数据库,Hibernate作为ORM(Object Relational Mapping)层。

④ 解析XML。用XML文件去为系统做配置,大消息内容也是基于XML。所以此系统用了大量的XML解析。

本系统的最终目的是构造一个企业级的即时通讯软件,实现企业内部的即时通信。通过该系统,在服务器端可以向全公司的人员发布通知、公司新闻、行业动向,而在客户端可以即时消息、文件传输等功能。可实现使用者与各部门同事间协同办公的要求,满足企业内部进行更加高效沟通的需求,为企业提供一种公共的、可靠的内部沟通方式。

关键词:即时通讯;Java; Swing; Apache Mina; XML; Hibernate

1

中南大学学士论文 基于JAVA的企业级即时通信平台设计与实现

Abstract

As to internet users in China at present ,IM(Instant Messenger) software is one of the highest rates of software .Instant Messenger System will enable people to identify online users and the Internet with real-time communication. We can achieve real-time via IM and communication.

In the modern enterprise, employees at work often were working together with other colleagues and cross-sectoral cooperation, all-round cooperative use of limited resources to do more work, hence the need for real-time colleagues to communicate. And many internal staff communication is based on Email, telephone, SMS, fax. Large companies spending on communication costs are definitely not a small number, especially those cross-regional branch pieces of a large number of enterprises in particular. In such a competitive society, business is also part of the cost savings it means higher interest rates.

In this paper, enterprise instant messaging systems technical issues involved in a more systematic study. For the instant messaging features, using of Java, Apache's open source communications framework Mina and Mysql , I develop one internal communication platform which base on TCP / IP connection and is connection oriented . Mainly in the following aspects have been studied:

①: Communication Framework (Mina). Apache's open source communications framework with Mina as application layer of the system. Communication connection class is based on Mina to package.

②: Parsing XML. Using XML file to configure the system, the message content is also based on XML. Therefore, the system spent a lot of XML parsing.

③: Java Technology. In the system make extensive use of Java in the Swing, multithreading, IO streams, Collections Framework and many of the design patterns

④: Data Persistence. In System, Mysql is used for the database and Hibernate as ORM layer.

The ultimate goal of this system is to construct an enterprise-class instant messaging software, instant messaging within the enterprise. Through the system, the server side can be issued to notify all the company's personnel, the company news, industry trends. In the client can instant messages, file transfer and other functions. Enables users with the collaboration between colleagues in the department office requirements, meet enterprise demands for more efficient communication, and provide a public good, reliable internal communication.

Key words:Instant Messenger; Java; Swing; Apache Mina; XML; Hibernate;

2


基于JAVA的企业级即时平台设计与实现 - 图文.doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2015年12月留基委口语试题汇总

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: