CN102662778A - Callback response method of inter-application communication on online application platform, application and online application platform - Google Patents

Callback response method of inter-application communication on online application platform, application and online application platform Download PDF

Info

Publication number
CN102662778A
CN102662778A CN2012101329816A CN201210132981A CN102662778A CN 102662778 A CN102662778 A CN 102662778A CN 2012101329816 A CN2012101329816 A CN 2012101329816A CN 201210132981 A CN201210132981 A CN 201210132981A CN 102662778 A CN102662778 A CN 102662778A
Authority
CN
China
Prior art keywords
message
application
service
call back
back function
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
CN2012101329816A
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.)
HANGZHOU GLEASY TECHNOLOGY CO LTD
Original Assignee
HANGZHOU GLEASY 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 HANGZHOU GLEASY TECHNOLOGY CO LTD filed Critical HANGZHOU GLEASY TECHNOLOGY CO LTD
Priority to CN2012101329816A priority Critical patent/CN102662778A/en
Publication of CN102662778A publication Critical patent/CN102662778A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a callback response method of inter-application communication on an online application platform, an application onto the online application platform and the online application platform. When a client of the online application platform is started or applied, the application process is created according to preset communication protocols; message types capable of being processed by the application are recorded; the request part application converts a callback function into character strings according to preset rules, in addition, service invoking messages are constructed, and the service invoking messages are sent to the response part application; the response part application identifies the callback function identification (ID); an executing server generates service executing results; and response messages are constructed by the service executing results and the callback function ID and are sent to the request part application, the application process of the request part application monitors the response messages in message queues, the callback function ID is indentified, and the executing results of a callback function processing server corresponding to the callback function ID are invoked. The response communication of the inter-application on the online application platform can be realized, and in addition, the use in complicated network environment is realized.

Description

The readjustment answer method of IAC, application and online application platform on the online application platform
Technical field
The present invention relates to the communication technology used on the online application platform, relate in particular to readjustment answer method, the application on the online application platform and the online application platform of IAC on the online application platform.
Background technology
Traditional callback mechanism mainly contains following implementation method:
First kind:, can realize readjustment through call back function for general structured language.Call back function is realized by called side oneself, supplies the side's of being called use.
Second kind: in object-oriented language, callback mechanism realizes through interface or abstract class that then we call the readjustment class to the class of this interface of realization, and the object of readjustment class is called callback object.
The third: act on behalf of system CORBA for distributed component, asynchronous process has multiple mode, like readjustment, Event Service, notification service etc.Event Service and notification service are the standards service that CORBA is used for handling asynchronous message, they mainly be responsible for message processing, distribute, work such as maintenance.To some simple asynchronous process processes, we can realize through callback mechanism.
In the implementation method of tradition callback mechanism, preceding two kinds of methods all are the inner readjustment of local process, and all operations all depends on local process communication, can't be applied to online application platform.The third mode CORBA depends on and uses the SOCKET technical communication each other, and this can't provide in the WEB environment, and CORBA is very heavy in addition, can't be applied to succinct online environment.Be only applicable to communication and cooperation between limited application server, and can only be used for internal environment, do not possess publicity.For the network environment of complicacy, because the context of asynchronous process process before can causing when result is returned calling be interfered and destroy, so called side must analyze the result of returning, and therefore can't guarantee the integrality and the high efficiency of communicating by letter.
Summary of the invention
The present invention provides readjustment answer method, the application on the online application platform and the online application platform of IAC on a kind of online application platform, the acknowledge communication between can realizing using on the online application platform, and be used in complicated network environment.
The readjustment answer method of IAC on the online application platform provided by the invention comprises step:
When the client terminal start-up of online application platform is used, create application process according to predetermined communication protocol; And write down the accessible type of message of said application; Said application process is saidly to have a form when being applied in the operation of said client, comprises application process I D, Apply Names, context space, message queue, executable program path; Said message queue is the carrier that online application platform and said application process communicate;
When requestor application is called the service of answer party application; Requestor application converts call back function into character string according to pre-defined rule; And the structure service invocation message, said service invocation message comprises Apply Names, type of message, the message body based on the predefined communication protocol definition; Said type of message is used to carry the processing logic of the service that said answer party uses; Said message body is used to carry call back function ID; Said call back function ID is the character string that call back function is changed, and said call back function is used to carry described request side and uses pairing context environmental;
The application of described request side is sent to said answer party with said service invocation message and uses in the message queue of pairing application process;
Service invocation message in the application process monitoring message formation that said answer party is used identifies said call back function ID according to said pre-defined rule;
Carry out said service based on said type of message, generate the execution result of said service;
Utilize execution result and the said call back function ID structure response message of said service, and be sent to described request side and use in the message queue of pairing application process;
Response message in the application process monitoring message formation that described request side uses identifies said call back function ID according to said pre-defined rule, calls the execution result that the corresponding call back function of said call back function ID is handled said service.
Application on the online application platform provided by the invention comprises:
Conversion equipment is used for converting call back function into character string according to pre-defined rule;
The structure information apparatus is used for when said application is called the service of other application as the requesting party, the structure service invocation message, and said service invocation message comprises Apply Names, type of message, the message body according to the predefined communication protocol definition; Said type of message is used to carry the processing logic of the service that said answer party uses; Said message body is used to carry call back function ID; Said call back function ID is the character string that call back function is changed, and said call back function is used to carry described request side and uses corresponding context environmental; When said application during, utilize the execution result and the said call back function ID structure response message of said service as answer party;
Recognition device is used for identifying said call back function ID according to pre-defined rule from service invocation message or the response message of receiving;
The service logic treating apparatus is used for when as answer party, carrying out said service according to said type of message, generates the execution result of said service; When as the requesting party, call the execution result that the corresponding call back function of said call back function ID is handled said service.
Online application platform provided by the invention comprises and using and the application process manager that said application process manager is positioned at the client of online application platform, comprising:
The process creation interface; Be used for creating application process according to predetermined communication protocol according to Apply Names; Said application process is saidly to have a form when being applied in the operation of said client, comprises application process ID, Apply Names, context space, message queue, executable program path; Said message queue is the carrier that online application platform and said application process communicate, and said application process is monitored the message in the said message queue, and handles;
Send the process message interface, be used for receiving and sending message, said message comprises: Apply Names, type of message, message body; Said message dilivery to answer party is used in the message queue of pairing application process, the message of said reception and transmission comprises service invocation message and response message;
Process is destroyed interface, is used for using the application process of destroying described request side or answer party application when withdrawing from when described request side or answer party;
Said application comprises:
Conversion equipment is used for converting call back function into character string according to pre-defined rule;
The structure information apparatus is used for when said application is called the service of other application as the requesting party, the structure service invocation message; Said type of message is used to carry the processing logic of the service that said answer party uses; Said message body is used to carry call back function ID; Said call back function ID is the character string that call back function is changed, and said call back function is used to carry described request side and uses pairing context environmental; When said application during, utilize the execution result and the said call back function ID structure response message of said service as answer party;
Recognition device is used for identifying said call back function ID according to pre-defined rule from service invocation message or the response message of receiving;
The service logic treating apparatus is used for when as answer party, carrying out said service according to said type of message, generates the execution result of said service; When as the requesting party, call the execution result that the corresponding call back function of said call back function ID is handled said service.
The present invention is based between online application process and application process and communicate by letter; Use this programme, called side can use call back function to receive the result that the side of being called sends back to, realizes replying the effect of formula communication; And call back function can be represented context environmental; Thereby can guarantee that in the result returns the context before calling is interference-free and destroy, thereby guarantee the integrality and the high efficiency of communication; Shielded communication details, avoided owing to reconstruct context demand is transmitted the information leakage that excessive information causes to the side of being called, make call more safe and reliable; Service provider interface is more simply clear, is not from long-range or local context with distinguishing the requestor even.
Description of drawings
Fig. 1 is the process flow diagram of the readjustment answer method of IAC on the online application platform;
Fig. 2 is online application platform theory diagram.
Embodiment
The applicant is 201210094195.1 at application number, and denomination of invention discloses a kind of technology that realizes IAC on the online application platform based on application process in the patented claim of " the process communication method of online application platform, client, application process manager ".The present invention further improves on the basis of this patented claim; Need wait for the application scenarios of return results to some; And the problem that need call the loaded down with trivial details inefficiency that the processing agenda causes when using in many ways simultaneously; Absorb the characteristics and the advantage of traditional callback mechanism, proposed to pass through between a kind of the application method of callback mechanism efficient communication.
As shown in Figure 1; The readjustment answer method of IAC on the online application platform provided by the invention; Need be that the approach that 201210094195.1 patented claim provides is set up virtual process at first according to application number; So that realize the communication between the application: when the client terminal start-up of online application platform is used, create application process according to predetermined communication protocol through application process; And write down the accessible type of message of said application (S100); Said application process is saidly to have a form when being applied in the operation of said client, comprises application process ID, Apply Names, context space, message queue, executable program path; Said message queue is the carrier that online application platform and said application process communicate;
Requestor application is carried the pairing context environmental of requesting party through call back function; When requestor application is called the service of answer party application; With call back function hand over word string (S101); The present invention requires call back function to convert character string into according to predefined form (being pre-defined rule), so that whether follow-up can to go out according to the format identification of character string be call back function; Construct service invocation message (S102) then, service invocation message comprises Apply Names, type of message, the message body of predefined communication protocol definition; Type of message has carried the processing logic (promptly needing answer party to use the incident of carrying out) of the service of answer party application; The present invention adds the character string of call back function conversion in the message body when the structure service invocation message, replaces call back function to send to answer party and uses (S103);
Requestor application is sent to answer party with service invocation message and uses (S104) in the message queue of pairing application process;
Service invocation message in the application process monitoring message formation that answer party is used identifies said call back function ID (S105) according to pre-defined rule; Carry out said service according to type of message, generate the execution result (S106) of said service; Utilize the execution result and the call back function ID structure response message of service, response message comprises Apply Names, type of message, the message body of predefined communication protocol definition; Type of message is that unique specific call back function result returns sign; The present invention will utilize during response message in the character string adding message body of execution result and call back function ID conversion of service at structure, and be sent in the message queue of the pairing application process of requestor application (S107);
Response message in the application process monitoring message formation of requestor application identifies said call back function ID (S108) according to pre-defined rule, calls the execution result (S109) that the corresponding call back function of said call back function ID is handled said service.
Corresponding with the readjustment answer method of IAC on the above-mentioned online application platform; The present invention also provides the corresponding online application platform; As shown in Figure 2, comprise various application and application process manager on the online application platform, the application on the online application platform comprises conversion equipment, structure information apparatus and recognition device; The application process manager is positioned at the client of online application platform, comprises the process creation interface, sends process message interface and process destruction interface.Principle of work is described below:
The process creation interface is created application process according to Apply Names according to predetermined communication protocol; Said application process is saidly to have a form when being applied in the operation of said client, comprises application process ID, Apply Names, context space, message queue, executable program path; Message queue is the carrier that online application platform and said application process communicate, and application process is monitored the message in the said message queue, and handles;
When requestor application need be called the service of answer party application; The conversion equipment of requestor application converts call back function to character string according to pre-defined rule; Structure information apparatus structure service invocation message; Character string is sent to transmission process message interface as call back function ID, and transmission process message interface is delivered to answer party with service invocation message and uses in the message queue of pairing application process;
Answer party is used the message in the monitoring message formation, identifies said call back function ID according to pre-defined rule from the service invocation message of receiving through recognition device; The service logic treating apparatus is carried out respective service according to type of message, generates the execution result of said service; The execution result of structure information apparatus utilization service and call back function ID structure response message; Through sending the message queue that the process message interface is sent to requestor application;
After requestor application monitors response message, call the execution result that the corresponding call back function of said call back function ID is handled said service through the service logic treating apparatus.
Using process when withdrawing from when described request side or answer party destroys interface and destroys the application process that requesting party or answer party are used.
The foregoing description is a preferred implementation of the present invention; But embodiment of the present invention is not restricted to the described embodiments; Other are any not to deviate from modification, the modification done under spirit of the present invention and the principle, substitute, combination, simplify; All should be the substitute mode of equivalence, all should be included within protection scope of the present invention.

Claims (3)

1. the readjustment answer method of IAC on the online application platform is characterized in that, comprises step:
When the client terminal start-up of online application platform is used, create application process according to predetermined communication protocol; And write down the accessible type of message of said application; Said application process is saidly to have a form when being applied in the operation of said client, comprises application process ID, Apply Names, context space, message queue, executable program path; Said message queue is the carrier that online application platform and said application process communicate;
When requestor application is called the service of answer party application; Requestor application converts call back function into character string according to pre-defined rule; And the structure service invocation message, said service invocation message comprises Apply Names, type of message, the message body based on the predefined communication protocol definition; Said type of message is used to carry the processing logic of the service that said answer party uses; Said message body is used to carry call back function ID; Said call back function ID is the character string that call back function is changed, and said call back function is used to carry described request side and uses pairing context environmental;
The application of described request side is sent to said answer party with said service invocation message and uses in the message queue of pairing application process;
Service invocation message in the application process monitoring message formation that said answer party is used identifies said call back function ID according to said pre-defined rule;
Carry out said service based on said type of message, generate the execution result of said service;
Utilize execution result and the said call back function ID structure response message of said service, and be sent to described request side and use in the message queue of pairing application process;
Response message in the application process monitoring message formation that described request side uses identifies said call back function ID according to said pre-defined rule, calls the execution result that the corresponding call back function of said call back function ID is handled said service.
2. the application on the online application platform is characterized in that, comprising:
Conversion equipment is used for converting call back function into character string according to pre-defined rule;
The structure information apparatus is used for when said application is called the service of other application as the requesting party, the structure service invocation message, and said service invocation message comprises Apply Names, type of message, the message body according to the predefined communication protocol definition; Said type of message is used to carry the processing logic of the service that said answer party uses; Said message body is used to carry call back function ID; Said call back function ID is the character string that call back function is changed, and said call back function is used to carry described request side and uses corresponding context environmental; When said application during, utilize the execution result and the said call back function ID structure response message of said service as answer party;
Recognition device is used for identifying said call back function ID according to pre-defined rule from service invocation message or the response message of receiving;
The service logic treating apparatus is used for when as answer party, carrying out said service according to said type of message, generates the execution result of said service; When as the requesting party, call the execution result that the corresponding call back function of said call back function ID is handled said service.
3. an online application platform is characterized in that, comprises using and the application process manager, and said application process manager is positioned at the client of online application platform, comprising:
The process creation interface; Be used for creating application process according to predetermined communication protocol according to Apply Names; Said application process is saidly to have a form when being applied in the operation of said client, comprises application process ID, Apply Names, context space, message queue, executable program path; Said message queue is the carrier that online application platform and said application process communicate, and said application process is monitored the message in the said message queue, and handles;
Send the process message interface, be used for receiving and sending message, said message comprises: Apply Names, type of message, message body; Said message dilivery to answer party is used in the message queue of pairing application process, the message of said reception and transmission comprises service invocation message and response message;
Process is destroyed interface, is used for using the application process of destroying described request side or answer party application when withdrawing from when described request side or answer party;
Said application comprises:
Conversion equipment is used for converting call back function into character string according to pre-defined rule;
The structure information apparatus is used for when said application is called the service of other application as the requesting party, the structure service invocation message; Said type of message is used to carry the processing logic of the service that said answer party uses; Said message body is used to carry call back function ID; Said call back function ID is the character string that call back function is changed, and said call back function is used to carry described request side and uses pairing context environmental; When said application during, utilize the execution result and the said call back function ID structure response message of said service as answer party;
Recognition device is used for identifying said call back function ID according to pre-defined rule from service invocation message or the response message of receiving;
The service logic treating apparatus is used for when as answer party, carrying out said service according to said type of message, generates the execution result of said service; When as the requesting party, call the execution result that the corresponding call back function of said call back function ID is handled said service.
CN2012101329816A 2012-04-28 2012-04-28 Callback response method of inter-application communication on online application platform, application and online application platform Pending CN102662778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101329816A CN102662778A (en) 2012-04-28 2012-04-28 Callback response method of inter-application communication on online application platform, application and online application platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101329816A CN102662778A (en) 2012-04-28 2012-04-28 Callback response method of inter-application communication on online application platform, application and online application platform

Publications (1)

Publication Number Publication Date
CN102662778A true CN102662778A (en) 2012-09-12

Family

ID=46772277

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101329816A Pending CN102662778A (en) 2012-04-28 2012-04-28 Callback response method of inter-application communication on online application platform, application and online application platform

Country Status (1)

Country Link
CN (1) CN102662778A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970600A (en) * 2013-01-31 2014-08-06 阿里巴巴集团控股有限公司 General notification system and notification sending method for program scheduling as well as scheduling method
CN105335238A (en) * 2014-08-12 2016-02-17 腾讯科技(深圳)有限公司 Inter-process communication method and apparatus
CN106130748A (en) * 2016-08-30 2016-11-16 山东鲁能智能技术有限公司 Network multimachine many nets Distributed Services module status detection method and system
CN107402826A (en) * 2017-06-30 2017-11-28 武汉斗鱼网络科技有限公司 A kind of method and device for carrying out remote procedure call in an asynchronous manner
CN107632894A (en) * 2017-08-09 2018-01-26 中国电力科学研究院 A kind of implementation method and device for power market transaction service call
CN110750684A (en) * 2018-07-06 2020-02-04 武汉斗鱼网络科技有限公司 Message prompting method for multi-dimensional verification, storage medium, electronic device and system
CN111310638A (en) * 2019-12-31 2020-06-19 深圳云天励飞技术有限公司 Data processing method and device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1470988A (en) * 2002-07-25 2004-01-28 梁肇新 Inter-process calling gate technique
US20070162549A1 (en) * 2006-01-11 2007-07-12 Bea Systems, Inc. System and method for conversation based on web service addressing
CN102103526A (en) * 2011-02-14 2011-06-22 博视联(苏州)信息科技有限公司 Method and system for performing inter-process communication between server and client by service management
CN102137123A (en) * 2010-01-25 2011-07-27 腾讯科技(北京)有限公司 Device and method for realizing process-to-process communication of different application programs on mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1470988A (en) * 2002-07-25 2004-01-28 梁肇新 Inter-process calling gate technique
US20070162549A1 (en) * 2006-01-11 2007-07-12 Bea Systems, Inc. System and method for conversation based on web service addressing
CN102137123A (en) * 2010-01-25 2011-07-27 腾讯科技(北京)有限公司 Device and method for realizing process-to-process communication of different application programs on mobile terminal
CN102103526A (en) * 2011-02-14 2011-06-22 博视联(苏州)信息科技有限公司 Method and system for performing inter-process communication between server and client by service management

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970600A (en) * 2013-01-31 2014-08-06 阿里巴巴集团控股有限公司 General notification system and notification sending method for program scheduling as well as scheduling method
CN103970600B (en) * 2013-01-31 2018-04-03 阿里巴巴集团控股有限公司 A kind of Generic Notification system, the notice sending method and dispatching method of program scheduler
CN105335238A (en) * 2014-08-12 2016-02-17 腾讯科技(深圳)有限公司 Inter-process communication method and apparatus
CN105335238B (en) * 2014-08-12 2020-04-21 腾讯科技(深圳)有限公司 Inter-process communication method and device
CN106130748A (en) * 2016-08-30 2016-11-16 山东鲁能智能技术有限公司 Network multimachine many nets Distributed Services module status detection method and system
CN106130748B (en) * 2016-08-30 2019-05-10 山东鲁能智能技术有限公司 The more net Distributed Services module status detection methods of network-based multimachine and system
CN107402826A (en) * 2017-06-30 2017-11-28 武汉斗鱼网络科技有限公司 A kind of method and device for carrying out remote procedure call in an asynchronous manner
CN107632894A (en) * 2017-08-09 2018-01-26 中国电力科学研究院 A kind of implementation method and device for power market transaction service call
CN110750684A (en) * 2018-07-06 2020-02-04 武汉斗鱼网络科技有限公司 Message prompting method for multi-dimensional verification, storage medium, electronic device and system
CN110750684B (en) * 2018-07-06 2022-08-16 武汉斗鱼网络科技有限公司 Message prompting method for multi-dimensional verification, storage medium, electronic device and system
CN111310638A (en) * 2019-12-31 2020-06-19 深圳云天励飞技术有限公司 Data processing method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN102662778A (en) Callback response method of inter-application communication on online application platform, application and online application platform
CN109246251B (en) Micro-service calling method, device, system, equipment and readable storage medium
EP2746950B1 (en) ABAP channels for event signaling
CN101262498B (en) A distributed message call method and device
WO2011133471A1 (en) Servlet api and method for xmpp protocol
CN105183452A (en) Spring AOP based remote protocol service middleware for monitoring power distribution device
CN104378221A (en) Asynchronous calling method applied to integrated circuit production line monitoring system
CN102662776B (en) Inter-application communication method, client side and application process manager of online application platform
CN109462634A (en) Message treatment method, device and equipment in a kind of distributed system
CN112073923A (en) Communication method, device, gateway and readable storage medium compatible with multiple operators
CN104463670A (en) Websocket-based bank preposition transaction system construction method
US10924527B2 (en) Dynamic workflow-based composite web service system and method
CN102693163A (en) Response communication method in application on on-line application platform and on-line application platform
CN104486330A (en) Two-way communication system based on remote procedure calls (RPCs)
CN113111666A (en) System and method for realizing multi-language translation of application program
CN111901384A (en) System, method, electronic device and readable storage medium for processing message
CN107819855A (en) A kind of message distributing method and device
WO2019201111A1 (en) Information processing method, apparatus and device, and computer-readable storage medium
CN109639555A (en) Link layer message generation method, link layer message generating means and terminal device
US9009257B2 (en) Direct return to source (DRS) routing of customer information control systems (CICS) transactions
US9479599B2 (en) Reroute of a web service in a web based application
EP2785019A1 (en) Managing mobile telecommunication devices with a general purpose messaging transport protocol in digital cellular telecommunication networks
CN108055337A (en) The method and apparatus that multiple service platform docks public platform
JP2005143100A (en) Erp access method from mobile device
CN112165529A (en) Method, device, equipment and medium for low-cost cross-network data exchange

Legal Events

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

Application publication date: 20120912