【正文】
ation. Message mechanism Work Flow Message mechanism consists of four submodules and collaborative relation ship between the work process is as follows: 1) Use Type Manager custom mes sage types, including header inform ation and message body property is set, the general message header contains the message manager of several attributes must not be deleted, and the message body should be free to customize。另外,消息隊列和消息存儲對外提供容量定制接口,消息處理對外提供處理細節(jié)定制接口。服務器作為消息管理器的核心,包含了三個子模塊:消息隊列、消息存儲和消息處理。比如 , 在 — 個購物平,可以包含至少兩大功能模塊:用戶管理和購物 管理,那么消息服務器就可For example, in a shopping square, may contain at least two functional modules: user management and shopping management, the message server can be added at least two: one to handle user management module generated messages and another for shopping management module . Message Manager server as the core, contains three submodules: message queues, message storage and message processing. Each message server submodules are mutually independent. In addition, message queues, and provides message storage capacity of external custom interfaces, message processing customized interfaces provide external handle the details. Message server workflow is as follows: 1) The server receives the message to identify the message type, and if the query type The message is sent directly to the message memory, or add the message queue。 服務器組 這里的服務器不是 Web應用中所指的服務器,而是針對消息而言的消息處理服務器,都是工作于客戶端的機制。 分派器 如果說消息產(chǎn) 生器是消息管理器的消息輸出接口,那么分派器就是消息的接收接口。為避免使用者發(fā)送不規(guī)范消息 —— 。例如,檢驗器是基于類型管理器工作的,檢驗器的工作完成后才能保證設(shè)置器所接受到的消息是結(jié)構(gòu)完整的消息,所以檢驗器依賴于類型管理器,設(shè)置器依賴于檢驗器。 基礎(chǔ)管理 主要負責消息 的基礎(chǔ)信息管理,包括類型管理、消息完整性的驗證、消息內(nèi)容的設(shè)置以及消息的狀態(tài)處理這四個子模塊。 Message mechanism model Message mechanism is to manage the entire life cycle of the mechanism of the message, also called Message Manager is divided into four parts, Figure 1 depicts the Message Manager39。如用戶重現(xiàn)歷史請求的需求被局限于服務器對請求的處理,如果該請求已經(jīng)被服務器清空,甚至根本沒有保存,那么用戶無法重現(xiàn); Web應用的開發(fā)人員如果是基于 WebService進行開發(fā),而所使用的Web Service的消息機制是不 可定制的,或者說可操作性比較差,那么開發(fā)人員也許無法完全實現(xiàn)產(chǎn)品對消息管理的需求。 Web application developers to develop if it is based on WebService, while the use of the Web Service message mechanism can not be customized, or operability is poor, then the developers may not be fully realized pr