Font Size: a A A

The Research Of Asynchronous MOM Based On CORBA

Posted on:2006-11-17Degree:MasterType:Thesis
Country:ChinaCandidate:M X WangFull Text:PDF
GTID:2168360155465250Subject:System theory
Abstract/Summary:PDF Full Text Request
Middleware is a common server system between hardware, operation system and application program, and has standard program interface and protocol. It can share data and co-operate application on different hardware and operation system. Formerly, there are many asynchronous or synchronous MOM based on COM/DCOM, in this paper I mainly research on the asynchronous MOM based on CORBA, and developed a MOM based on e CORBA's technology, realized the communication between clients.At first, I use Delphi6 build a project as the server, then build the other project as the client to call on the server. At the server and client I write the visited base produces. The client uses the produces to send or receive message.Secondly, I define a message queue at the server. The queue is operated at the principle of first-in-first-out. And the client's ID is unique. When clients send message, the server firstly receives the message from the client, then the server saves the message in its message queue. In the message queue, there are message content, the IDs of the sender and the receiver. The message queue waits the request of the receiver. When the receiver logs on the client, and sends a request to the server, the server searches the message of the receiver in the message queue by its ID. If there is the receiver's message, the server will take out it from the message queue and sends it to the client.At last, to realign the message queue when message is taken out, I realize a algorithm. When the receiver takes out its entire message, the message queue will delete them, and then the message queue will be realigned, it satisfies the FIFO's principle. In the algorithm, when the message was taken out, the message between two pieces of taken out message will be moved forward, move forward the message in the message queue one by one section. Each move, the place number of the lattermessage to shift forward will be added one.When projects were built and algorithm was realized, clients can communicate each other. When the message is send, the client and the server synchronously communicate each other to see whether the message sends to the server or not.
Keywords/Search Tags:MOM (Message-Oriented Middleware), CORBA (Common Object Request Broker Architecture), Asynchronous, Message queue, Server, Client, Distributed Algorithms, FIFO (First-In-First-Out)
PDF Full Text Request
Related items