Message Oriented Middleware (MOM) is an important branch of middleware which uses message to build an asynchronous and decoupled programming architecture for network computing. Java Message Service (JMS) is a specification for MOM based on Java Language and was created by Sun Microsystems. It masks the heterogeneity of network protocol, programming language, OS and Database and is becoming the standard in industry. In this thesis, a JMS middleware product is designed and implemented.A series of design patterns, including singleton class, abstract factory and adapter, are introduced on design of the product. MyJMS creates publish/subscribe and point-to-point messaging model, implements all JMS API, provides persistent messaging, message browser and message selector. As a middleware, MyJMS 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.At last, A scheme of application integration is presented. Through MyJMS, the applications distributed in network are integrated by transmitting and exchanging message between each other.
|