【正文】
型,如果是查詢類型 的消息則直接送往消息存儲(chǔ)器,否則加入消息隊(duì)列; 2)查詢類消息在消息存儲(chǔ)器中找到指定的消息后便銷毀, 而作為 查詢結(jié)果的消息的副本則送往消息隊(duì)列,需要注意的是 作為查詢結(jié)果的副本,不應(yīng)當(dāng)在下一次Copy of the results of a query, the next should not be stored again in the process。 2) Using the server group provides custom server interface, you can customize the server message queue length, the message storage capacity, as well as message processing approach: 的處理中再次存儲(chǔ); 3)消息處理器循環(huán)的從消息隊(duì)列讀取并根據(jù)消息的內(nèi)容執(zhí)行相應(yīng)的處理,處理細(xì)節(jié)可以由消息管理器的使用者(Web應(yīng)用開(kāi)發(fā)人員 )定制。 4) Calls the message dispatcher receives the message, the message dispatcher verifying the integrity and validity of the data will be based on the information in the message header to send messages to a messaging server。如上節(jié)所述。 結(jié)語(yǔ) 本文介紹的消息管理機(jī)制主要工作于 Web應(yīng)用的客戶端,為了降低消息機(jī)制實(shí)現(xiàn)的代價(jià),并兼容各種瀏覽器,采用 JavaScript實(shí)現(xiàn)該消息管理機(jī)制。 2) flexibility, autonomy by the Web application developers customized to meet a variety of message types and message processing for different needs。 4) ponentbased, which could be loaded, and the relative independence Legislation. Across multiple application projects pleted using the message management mechanisms client message management, it shows the application value of the mechanism, can be used as a building block of development tools. The downside is that it does not provide priority treatment, you need to add in the message queue sorted by priority support. The message mechanism for the further development of improved Web application client message management mechanism provides a reference direction. 1)輕量級(jí)的實(shí)現(xiàn),不需要客戶端格外安裝任何插件,對(duì)傳輸效率不造成大的影響; 2)靈活性,可以由 Web應(yīng)用開(kāi)發(fā)人員自主定制,滿足各種消息類型以及對(duì)消息的處理的不同需求; 3)可回訪,提供的存儲(chǔ)器支持查詢操作,可改變存儲(chǔ)器的讀寫(xiě)位置; 4)構(gòu)件化,可以任意裝載,相對(duì)獨(dú) 立。其不足之處在于沒(méi)有提供優(yōu)先級(jí)的處理,需要在消息隊(duì)列中加入按優(yōu)先級(jí)排序的支持。 References 1. FLANAGAN D JavaScript: The defi nitive guide [M] Tsinghua University :12~24 Hongxia, Wang Jihong. distributed realtime operating system messages Mechanism Design and Implementation [J] Computer Engineering and Design 2020 (09):31~37 ,Jiang Hao workflow system message mechanism analysis and implementation [J] Computer Engineering and Design 2020 (11):12~23 hong, Zhao Xi Bin.,Yong Jianping. message based heterogeneous system integration solutions [J] Journal of Computer Applications 2020 (08) :36~40 H