节点文献

基于JMS的消息中间件的设计

The Design of the Message-Middleware Base on JMS

【作者】 张帆

【导师】 刘泉;

【作者基本信息】 武汉理工大学 , 通信与信息系统, 2007, 硕士

【摘要】 Internet的发展使得分布式计算环境下的应用集成越来越普遍,中间件是实现应用间互操作的一个重要手段。面向消息的中间件能够为分布式企业应用提供更为灵活、高效和可靠的异步消息传递机制。消息中间件采用消息传递机制为网络计算提供了异步低耦合的编程架构。Java Message Service(JMS)是由SUN Microsystems公司提出的基于Java技术的消息中间件的规范。它有效地屏蔽了网络协议、应用实现的具体技术、操作系统和数据库的细节,目前已被各大软件公司和开源组织所接受,成为业界的事实标准。针对目前消息中间件所存在的一些不足,例如传统类型的消息中间件的设计与开发没有统一的标准,各种消息中间件都使用专有的API和专有协议,来自不同厂家的消息中间件产品之间很难进行互操作;并且由于JMS技术发展时间并不长,在安全性、XML支持、管理工具以及支持除Java以外的其他语言等方面还没有深入研究等问题,本文在研究消息中间件技术和JMS规范的基础上,设计并实现了一个完全符合JMS规范的消息中间件产品:FreeJMS。由于JMS规范中没有对消息过滤机制进行具体说明,而传统的基于JMS的消息过滤方法效率较低,本文在第三章给出了一种改进的基于JMS的消息过滤算法。文章最后给出了系统的整体结构设计和各项服务的设计思想,并根据设计思想给出其具体的实现细节。作为一个消息服务系统,产品建立了发布/订阅和点到点的两种消息模式,实现了全部的JMS标准API,提高了消息持久化、消息预览和消息选择功能;基于J2EE技术,产品建立了可靠的线级通讯连接,提供了名字与目录服务,完成了会话和表示层的封装,为应用层的网络应用提供了透明接口;同时在服务器端实现了事件监听和多线程管理等机制,提高了产品的服务质量。

【Abstract】 With the rapid development of Internet, application integration under distributed computing environment has become more and more widely used. Middleware is an important approach to achieve cooperation among applications. Message-oriented Middleware(MOM) can provide flexible, effective and reliable asynchronous messaging mechanism for distributed enterprise applications.Message-oriented middleware(MOM) is a special middleware based on message-transmission, effective and reliable message transmission for communication across heterogeneous platforms can be provided by it. Distributed systems can interact and be integrated on the way of data communication by MOM. Java Message Service(JMS) is a specification for MOM based on Java Language Protocol, and was created by Sun Microsystems. It makes the heterogeneity of network programming language, OS and Database.In view of the current middleware existence of a number of shortcomings, For example, the traditional type of middleware design and development is no uniform standard, various Middleware use proprietary APIs and proprietary protocols, from different manufacturers middleware products is difficult to inter-operate; and because JMS technology development time is not long, in the security, XML support, management tools and support in addition to other than the Java language and other aspects have not yet in-depth research, Based on the study of information technology and JMS Middleware norms on the basis of Design and implementation of a fully consistent with the news of JMS middleware products: FreeJMS.Because the message filter mechanism is not mentioned in JMS specification, and the traditional message filter algorithms based on JMS is inefficient. In the third part, an improved message filter algorithm in JMS is suggested.After the research of MOM technology and JMS Specification, a method of designing and implementing a MOM system based on JMS Specification has been carried out. FreeJMS creates publish/subscribe and point-to-point messaging model, implements all JMS API, provides persistent messaging, message browser and message selector. As a middleware, FreeJMS creates reliable wire-level communication and JNDI service, wraps the lower layer of network and provides interfaces for application layer. Besides, several system services, like garbage collection, event listener and thread pool management are also provides in the product.

  • 【分类号】TP311.52
  • 【被引频次】7
  • 【下载频次】164
节点文献中: 

本文链接的文献网络图示:

本文的引文网络