用户名: 密码: 验证码:
基于J2EE消息服务的研究与设计
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
JMS是由Sun公司开发的一个开放性的应用编程接口,提供了一套创建、发送、接收和阅读企业级消息的Java编程方法。相比传统消息传送技术如RMI来说,JMS促进了分布式计算环境中各个组件之间可靠的异步通信,可以用来构建松散偶合的消息系统,从而大大简化了企业应用的开发过程。
     本课题设计和实现了基于J2EE的JMS消息服务。作为一种新型消息中间件,该系统由客户端API、JMS提供者、高级应用服务器工具以及J2EE应用服务集成JMS的接口等四个部分的纯Java实现而组成。
     本文首先介绍了JMS研发的技术背景,并在JMS规范1.0.2版本的基础上,给出了JMS体系结构的模型,详细阐述了JMS应用组成、管理对象、JMS消息模型、消息传送模式以及标准JMS接口等基本概念。从应用需求出发,本文还描述了JMS应用服务器工具、JMS服务的集成以及J2EE应用服务器对JMS系统的管理等的设计思想。其次,本文还给出了基于JMS规范的客户端和提供者之间通信数据结构的设计,阐述了JMS系统连接池、消息的持久派送、消息的可靠性订阅,交易性的传输以及多会话并发等关键技术的设计思想。同时,在文章的后面部分给出了JMS消息系统的性能测试结果。最后通过设计一个使用JMS消息系统的简单电子商务模型,说明了应用JMS编程的方法及其优点。
Java Message Service is an open Application Programming Interface developed by Sun Microsystems Inc. It provides a common way for Java programs to create, send, receive and read enterprise-messaging system's message. Differed from traditional messaging technologies, such as Remote Method Invocation, JMS promotes the reliability of asynchronous communication between components in distributed computing environments, and can be used for establishing loosely-coupled messaging system. Therefore, it simplifies the development of enterprise applications.
    The main goal of this project is to design and implement Java Message Service based on J2EE. The JMS system, a new type of Message Oriented Middleware, is composed of the pure Java implementations of client APIs, JMS provider, advanced application server facilities and the interfaces by which JMS can be integrated into J2EE.
    Firstly, the technology background of the research and development of JMS is introduced in this thesis. Based on the specification of JMS vl.0.2, we provide the model of the architecture of JMS and explain the basic concepts of JMS applications, administered objects, JMS message model, messaging model and the standard JMS interfaces. According to the application requirements, how to design JMS application server facilities, how to integrate JMS into J2EE application server, and how to manage JMS are also described.
    In addition, based on JMS specification, the design of communication data structures between clients and providers is presented. The design of connection pool, persistent message delivery, durable subscription, transactional delivery and concurrent sessions are also discussed in the thesis. As a result, the test data of JMS system is given in the later part of the thesis. At last, we design a simple e-business model to show how to program using JMS.
引文
[1] Sun Microsystem Inc, Java Message Service 1.0.2 Specification, 1998.10, http://java.sun.com
    [2] Sun Microsystem Inc, Java Message Service 1.1 Specification, 2002.4, http://java.sun.com
    [3] Bruce Eckel,Java编程思想,机械工业出版社,1999.4
    [4] Sun Microsystem Inc, Java 2 Platform, Enterprise Edition 1.3 Specification, 1999 http://java.sun.com
    [5] G. Banavar, T. Chandra, R. Strom, D. Sturman. A case for message oriented middleware. In Lecture Notes in Computer Science, 1999.9, volume 1693, 1-18
    [6] Object Management Group, CORBA Messaging White Paper, 1998.8, http://www.omg.org.
    [7] R.Lodrigues and P.Verssimo, Topology-Aware Algorithms for Large-Scale Communication, 2000, volume 1752, 127
    [8] Paul Giotta, Scott Grant, Michael Kovacs. Professional JMS Programming, Wrox Press Ltd. 2002.1, 47-364
    [9] Jiang.Allen, Java Message Service, WebScope Group, 2002.10, http://www.webscope-group.org
    [10] Java Open Reliable Asynchrosnous Messaging, ObjectWeb, 2002.10, http://www.objectweb.com

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

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

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