用户名: 密码: 验证码:
面向服务的应用短信服务器开发
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
论文以SOA思想为指导,按照面向服务的架构进行设计和开发了一个应用短信服务器,以标准的WebService接口提供短信服务功能。
     整个系统分为管理界面、服务接口、服务器框架、底层设备封装这几个主要部分。系统服务框架基于嵌入式的Tomcat实现,通过Tomcat服务器提供Web支持,包括Web管理功能和WebService。采用iBATIS技术来实现数据持久层,采用Struts2技术来实现Web表示层,采用Spring2实现控制层,通过Spring2的依赖注入特性,实现表示层、控制层、业务逻辑层和数据持久层之间的解耦,实现一种松散耦合的系统结构。采用内嵌的Derby数据库来实现数据持久化。整个系统对外表现为一个高度集成的系统,Web服务器、数据库都通过内嵌的方式实现,使整个系统外部结构清晰简单,安装部署非常容易。
     底层设备封装模块,为不同的短信发送方式和设备定义统一的接口,根据不同的方式实现不同的模块,可以在系统中灵活配置实现模块,而不影响上层业务。短信发送方式包括:GSM设备和SP模式两种。
     管理模块,主要是通过BS的方式,对短信服务器进行日常管理,包括:用户管理、待发信息管理、已发信息管理、费用管理等。
Now the various application system arises along with the development of electronic information construction. It become frequently for staffs to operate each kind of application system. The staffs have to use kinds of different application system along with the increasing of application. The work changes to be numerous and disorder, that is easily be lose emphases by the staffs. The information prompt is a good solution to hold the emphases in the work, including short messages prompt, mail prompt, immediate communication prompt, and so on. Thus, it can prompt the staffs to process the service requestion promptly. It can also send some system alerting messages to staffs, so that the staffs can discover the problem arise when the system is running and dispose them promptly.
     The development of the application short message server is for the purpose of providing an uniform short message solution,and providing an uniform interface of sending message for application. It can operate each kind of short message , including sending,storing, statistic, auditing and so on. As a short message gateway, it integrates the common way of short message,including handset short message, mail, enterprise immediate communication message ,and so on. The application system can choose many ways to communicate with message server, including WebService , HTTP, and so on.
     At present our work only aim at the domain of handset short message, and provide an opening message server for the application system. It is easy to add the function of message prompt to application system and enhance the usability of application system. The message server provide an uniform message service interface for the different application system in enterprise, and solve the need of message in the Enterprise level application through an form of uniform management. It can both save the cost of the development and management in the enterprise level application, and realize the centralized management and the safety audit.
     The application short message server is developed using a service-oriented architecture and guided by the SOA theory. It provide function of message service with standard WebService interface, separated completely from the dependence with platform. It can call the service interface to send message in all environment.
     The whole system includes management interface, service interface,server framework and encapsulation of the bottom device. The system uses the embedded Tomcat server to provide the Web support, including the Web management and WebService. The data lasting level is implemented by iBatis technology. The system uses Struts2 technology to implement the express level. The system uses Spring2 to implement the control level. Using the IOC property of Spring2, it decouples the express level, control level ,operation logic level and data lasting level, provide a loose coupling framework. The system uses the embedded Derby database to provide longlasting data. The overall system appears to be a highly integrated system. Because the Web server and the database are embedded, the overall system structure is clear and simple. The system is easy to deploy. Through the embedded way, it further enhances the security between the system modules.
     The module which enclose the bottom device provides an uniform interface for different message sending form and device. The realization module can be disposed flexibly in the system according to different form and not to affect the upper service. There are two form of sending message, the GSM device form and SP form. The GSM device form connect the device to send message through the AT command. It adopts different encapsulation for different realization of standard GSM AT command set from the different manufacturer. The SP form adopts different encapsulation for different net protocol ,such as CMPP and SMPP.
     The management module manage the short message ser ver through the BS mode. It can manage the user ,the mes sages to be sended, the messages that have been sended, a nd so on. The system uses Struts2 technology to implemen t the MVC management interface. The jsp is used to imple ment the viewer. The Spring2 is used to implement the co mbination of action and DAO. The filter is used to imple ment the accessing control and login control of the user.
     This paper introduce the research significance of the t opic first. Then it introduce the corresponding technologiesusing in the system development, including Spring2, Struts 2, iBATIS, Derby, Axis2 all is the popular development tec hnologies. And then it introduce the outline design and thedetail design. The fifth chapter introduce the implement o f the system. The sixth chapter introduce the result of test ing the system. Finally it summarize all of the work and point out further prospect of work.
引文
[1] 中国移动通信互联网短信网关接口协议(V2.0),中国移动通信集团研发中心,2002.4,p1-37
    [2] spring2.0中文参考手册,Spring 2.0 RC2 Reference中文版正式发布,2006.10,p20
    [3] 夏昕,Ibatis2.0开发指南,2004,http://www.jsp.com.cn/tutorial/view.jsp?id=4
    [4] IBM官方网站,用Apache Derby进行ODBC编程,2004,http://www-128. ibm. com/developerworks/cn/db2/library/techart icles/dm-0409kartha
    [5] 李刚,Struts 2权威指南--基于WebWork核心的MVC开发,电子工业出版社,2007,1-1,p15-18
    [6] Deepal Jayasinghe,使用Axis2进行SOA开发,IBM中国技术论坛,2006,12,http://www. ibm. com/developerworks/cn/webservices/ws-soa-axis2-1/index. html
    [7] 李刚编著,spring2.0宝典,电子工业出版社,2006,p107—137
    [8] (美)梅特斯克,(美)韦克著,龚波,赵彩琳,陈蓓译,JAVA设计模式,人民邮电出版社,2007,p12—23,p45—56,p102—122
    [9] 杨磊 陈凌云编著,精通Eclipse Web开发-Java体系结构.工具.框架及整合应用,人民邮电出版社,2006,p187-236
    [10] (美)马森 著,鲍志云译,Junit in Action中文版,电子工业出版社,2005,D56—112

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700