CN102170467A - Method for interacting messages of network page end and desktop application program - Google Patents

Method for interacting messages of network page end and desktop application program Download PDF

Info

Publication number
CN102170467A
CN102170467A CN2011100819673A CN201110081967A CN102170467A CN 102170467 A CN102170467 A CN 102170467A CN 2011100819673 A CN2011100819673 A CN 2011100819673A CN 201110081967 A CN201110081967 A CN 201110081967A CN 102170467 A CN102170467 A CN 102170467A
Authority
CN
China
Prior art keywords
message
socket
server
application program
jms
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011100819673A
Other languages
Chinese (zh)
Inventor
肖龙源
邓仁超
黄景霖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fast Business (xiamen) Software Technology Co Ltd
Original Assignee
Fast Business (xiamen) Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fast Business (xiamen) Software Technology Co Ltd filed Critical Fast Business (xiamen) Software Technology Co Ltd
Priority to CN2011100819673A priority Critical patent/CN102170467A/en
Publication of CN102170467A publication Critical patent/CN102170467A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for interacting messages of a network page end and a desktop application program. The method is as follows: the network page end submits a message to a WEB server integrated with an SOCKET application in a hyper text transport protocol (HTTP) mode, wherein the WEB server sends the message through SOCKET, and the desktop application program integrated with SOCKET timely receives the message through the SOCKET; through the SOCKET, the desktop application program integrated with the SOCKET sends the message to the SOCKET server, the WEB server integrated with the SOCKET application receives the message through the SOCKET, then sends the message to a Java message server (JMS) by utilizing a JMS technique, the network page end acquires the message from the JMS server by utilizing the JMS technique circularly through AJAX (asynchronous JavaScript and XML); and the message of the desktop application program is received by the SOCKET, once the network page end sends the message, the desktop application program can receive the message timely, and the message interaction of the network page end and the desktop application program is carried out by the SOCKET and JMS technique in stead of a database as a medium, thereby increasing the efficiency of the data transmission and saving the resources and cost of the hardware and software of the server.

Description

The method of a kind of webpage end and multipad interacting message
Technical field
The present invention is the method for a kind of webpage end and multipad interacting message, belongs to the communications field.
Background technology
Traditional webpage end to client desktop application messages interaction flow as shown in Figure 1, the webpage end is submitted to the WEB server by the HTTP mode with message, this WEB server with message stores to database, the every certain interval of time of client desktop application program initiatively sends the request of obtaining message by the HTTP mode to the WEB server, this WEB server goes database retrieval whether to have the message that need send to this client, if have, then the WEB server extracts this message from database and returns to the client desktop application program by the HTTP mode.
Traditional client desktop application program to the message interaction process of webpage end as shown in Figure 2, the client desktop application program is submitted to the WEB server with message by the HTTP mode, this WEB server with message stores to database; The every certain interval of time of webpage end utilizes AJAX to send the request of obtaining message to the WEB server by the HTTP mode, this WEB server goes database retrieval whether to have the message that need send to this webpage end, if have, then the WEB server extracts this message from database and returns to the webpage end by the HTTP mode.
Need interactive messages because the mode of above-mentioned client desktop application program and webpage end interaction message is a certain interval of time goes server to inquire about repeatedly, had a strong impact on the efficient that message is transmitted; And both sides' interacting message must be media with the database all, and the linking number of database is extremely limited, the concurrency that can bear is also quite limited, not only database server need bear very big pressure, and profligacy server software and hardware resources, if that database uses is Oracle, increased input cost especially greatly.
Summary of the invention
The object of the present invention is to provide a kind of communication in time and the lower webpage end of input cost and the method for multipad interacting message.
The method of a kind of webpage end and multipad interacting message, wherein:
The webpage end is submitted to the WEB server that integrated SOCKET uses with message by the HTTP mode, and this WEB server sends a message to the SOCKET server by SOCKET, and the multipad of integrated SOCKET receives message immediately by this SOCKET server;
The multipad of this integrated SOCKET sends a message to the SOCKET server by SOCKET, the WEB server that integrated SOCKET uses receives this message by SOCKET, the WEB server by utilizing JMS technology that integrated then SOCKET uses is sent to the JMS server with this message, and the webpage end cycles through AJAX and utilizes the JMS technology to obtain message from the JMS server.
After adopting technical scheme of the present invention, because the message of client desktop application program receives by the SOCKET mode, webpage end one sends message, and multipad just can be received message in real time, under the normal situation of network, finish the time of whole interacting message and can ignore substantially.Because the interacting message at two ends need not by database as media but replace with SOCKET and JMS technology, not only increased the efficient of transfer of data, the resource and the cost of server software and hardware have more been saved, under equal hardware condition, the present invention is more much bigger than the message concurrency that traditional approach can bear.
Description of drawings
Fig. 1 is the traditional webpage end message interaction process figure to multipad;
Fig. 2 is the traditional multipad message interaction process figure to the webpage end;
Fig. 3 is the message interaction process figure of webpage end among the present invention to multipad;
Fig. 4 is the message interaction process figure of multipad among the present invention to the webpage end.
The invention will be further described below in conjunction with instantiation.
Embodiment
The present invention is the method for a kind of webpage end and multipad interacting message, specifically comprises as follows:
As shown in Figure 3, webpage end 1 is submitted to the WEB server 2 that integrated SOCKET uses with message by the HTTP mode, this WEB server 2 sends a message to SOCKET server 3 by SOCKET, and the multipad 4 of this integrated SOCKET is by the SOCKET server 3 instant message that receive;
As shown in Figure 4, the multipad 4 of integrated SOCKET sends a message to SOCKET server 3 by SOCKET, the WEB server 2 that this integrated SOCKET uses receives this message by SOCKET by SOCKET server 3, the WEB server 2 that this integrated SOCKET uses utilizes the JMS technology that this message is sent to JMS server 5, and webpage end 1 cycles through AJAX and utilizes the JMS technology to obtain message from JMS server 5.
The message of multipad receives by the SOCKET mode among the present invention, and webpage end one sends message, and multipad just can be received message in real time, under the normal situation of network, finishes the time of whole interacting message and can ignore substantially.Because the interacting message of webpage end and multipad need not by database as media but replace with SOCKET and JMS technology, not only increased the efficient of transfer of data, the resource and the cost of server software and hardware have more been saved, under equal hardware condition, the present invention is more much bigger than the message concurrency that traditional approach can bear.
The above, it only is structure preferred embodiments of the present invention, be not that technical scope of the present invention is imposed any restrictions, so any trickle modification, equivalent variations and modification that every foundation technical spirit of the present invention is done above example all still belong in the scope of technical solution of the present invention.

Claims (1)

1. the method for webpage end and multipad interacting message is characterized in that:
The webpage end is submitted to the WEB server that integrated SOCKET uses with message by the HTTP mode, and this WEB server sends a message to the SOCKET server by SOCKET, and the multipad of integrated SOCKET receives message immediately by this SOCKET server;
The multipad of this integrated SOCKET sends a message to the SOCKET server by SOCKET, the WEB server that integrated SOCKET uses receives this message by SOCKET, the WEB server by utilizing JMS technology that integrated then SOCKET uses is sent to the JMS server with this message, and the webpage end cycles through AJAX and utilizes the JMS technology to obtain message from the JMS server.
CN2011100819673A 2011-04-01 2011-04-01 Method for interacting messages of network page end and desktop application program Pending CN102170467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011100819673A CN102170467A (en) 2011-04-01 2011-04-01 Method for interacting messages of network page end and desktop application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011100819673A CN102170467A (en) 2011-04-01 2011-04-01 Method for interacting messages of network page end and desktop application program

Publications (1)

Publication Number Publication Date
CN102170467A true CN102170467A (en) 2011-08-31

Family

ID=44491443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011100819673A Pending CN102170467A (en) 2011-04-01 2011-04-01 Method for interacting messages of network page end and desktop application program

Country Status (1)

Country Link
CN (1) CN102170467A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338055A (en) * 2015-09-23 2016-02-17 百度在线网络技术(北京)有限公司 Information interaction method, server, and information interaction system
CN105681391A (en) * 2015-12-28 2016-06-15 智慧方舟科技有限公司 Server, Android client and network communication method and device of server and Android client
CN106293731A (en) * 2016-08-05 2017-01-04 浙江慧脑信息科技有限公司 A kind of client software method for designing to embedded webpage transmission much information
CN111611052A (en) * 2020-05-02 2020-09-01 山东同智伟业软件股份有限公司 Method for interacting with desktop application in webpage

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217554A (en) * 2008-01-14 2008-07-09 张尧森 An instant communication method realized on website
CN101299731A (en) * 2008-05-09 2008-11-05 国网信息通信有限公司 Instant communication method and apparatus based on Web
CN101355586A (en) * 2008-09-23 2009-01-28 刘东民 Method for unifying interface and conversion of various instant communication software and web
CN101436148A (en) * 2007-11-14 2009-05-20 华为技术有限公司 Integrated client end and method for performing interaction of desktop application and network WEB application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101436148A (en) * 2007-11-14 2009-05-20 华为技术有限公司 Integrated client end and method for performing interaction of desktop application and network WEB application
CN101217554A (en) * 2008-01-14 2008-07-09 张尧森 An instant communication method realized on website
CN101299731A (en) * 2008-05-09 2008-11-05 国网信息通信有限公司 Instant communication method and apparatus based on Web
CN101355586A (en) * 2008-09-23 2009-01-28 刘东民 Method for unifying interface and conversion of various instant communication software and web

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338055A (en) * 2015-09-23 2016-02-17 百度在线网络技术(北京)有限公司 Information interaction method, server, and information interaction system
CN105681391A (en) * 2015-12-28 2016-06-15 智慧方舟科技有限公司 Server, Android client and network communication method and device of server and Android client
CN106293731A (en) * 2016-08-05 2017-01-04 浙江慧脑信息科技有限公司 A kind of client software method for designing to embedded webpage transmission much information
CN106293731B (en) * 2016-08-05 2019-06-28 浙江慧脑信息科技有限公司 A kind of client software design method to embedded webpage transmitting much information
CN111611052A (en) * 2020-05-02 2020-09-01 山东同智伟业软件股份有限公司 Method for interacting with desktop application in webpage
CN111611052B (en) * 2020-05-02 2023-03-21 同智伟业软件股份有限公司 Method for interacting with desktop application in webpage

Similar Documents

Publication Publication Date Title
CN102546794B (en) Method for directly communicating browser client with back-end server as well as gateway and communication system
CN104717133A (en) Distributed message push system and method
CN105407180A (en) Server message pushing method and device
JP2009518755A5 (en)
Zhang et al. Research and development of real-time monitoring system based on WebSocket technology
CN104486440A (en) Message bus-based cloud computing management software interaction method
CN103312751A (en) Instant messaging method based on browser
CN103780627A (en) Native APP, Web APP and Wechat-similar APP information synchronization system
CN103297453A (en) Method, browser end and system for achieving instant communication
CN102170467A (en) Method for interacting messages of network page end and desktop application program
CN107231290A (en) A kind of instant communicating method and system
CN105681333A (en) Binary-system-based network data transmission method and system
Zhang et al. Research on IOT RESTful web service asynchronous composition based on BPEL
CN100452704C (en) Method and method for issuing blog articles
CN101888404A (en) Data updating method and device for mobile equipment
CN102065143A (en) Communication method and system based on HTTP (hyper Text Transfer Protocol), HTTP server and HTTP client
CN103067511A (en) Control method of hyper text transport protocol (HTTP) demand processing
CN202798801U (en) Universal communication system for achieving distributed data interaction
CN103533001A (en) Communication method and communication system based on HTTP multi-proxy, and intermediate proxy server
CN104052723A (en) Information processing method and server
Zhang 2-Tier Cloud Architecture with maximized RIA and SimpleDB via minimized REST
CN105577520A (en) Method for web program instant message interaction
CN107094178B (en) A kind of Internet data transmission method, apparatus and server terminal
CN101706901A (en) Device and method for realizing shielding of different working flow products
CN103413239A (en) Method for randomly generating discount coupons

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C05 Deemed withdrawal (patent law before 1993)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110831