Middleware system,operating system and database system are the basic technology in computer science domains. Middleware system and its concept are used in a lot of application systems. Message-oriented middleware which servers as a message system is the development focus of the middleware technology. It uses high-efficient and reliable transmission mechanism to send information from one application to another application or to a lot of applications in the form of message.In this dissertation,P2P Message-oriented Middleware(PPMM) is proposed.Firstly,compare advantages and disadvantages between C/S and P2P, After a detailed analyse of disadvantages of C/S-based Message-oriented Middleware, P2P message-oriented middleware is introduced.Then,PPMM is designed,and PPMM itself is divided into four layers,the Service Manage Layer,the Processing Layer,the Dispatching Layer and the Network Layer. In order to improve performance of system,In the Network Layer,we use Java NIO technology and Reactor pattern to realize the asynchronous sending and receiving of messages.Finally,the detailed design and the realization of the main module are gived based on the overall design. At the end of the dissertation is conclusion of this design follwed by future works. |