Summary of the invention
The application provides a kind of snap information exchange method, home server, strange land server and system, with
Solve the problem that prior art exists time-consuming interactive operation.
The application provides a kind of snap information exchange method, including:
The data that local service end receives client transmission are more newly requested;
Described local service end is more newly requested according to described data, will be stored in the described customer information of this locality
Corresponding data be updated;
If described data update, the most described local service end generates request more according to described data are more newly requested
The associated data of the new associated data relevant with described data is more newly requested, to storing described incidence number
According to strange land service end to send described associated data more newly requested, and to data described in described client feedback more
New successful information.
Optionally, described local service end generates request renewal and described data according to described data are more newly requested
The associated data of relevant associated data is more newly requested, to the strange land service storing described associated data
It is more newly requested that end sends described associated data, and concrete steps include:
Described local service end generates request renewal and the relevant pass of described data according to described data are more newly requested
The associated data of the associated data of system is more newly requested;
Described local service end judges that described associated data is the most newly requested and the most generates;
The most described local service end sends described association to the strange land service end storing described associated data
Data are more newly requested;
If it is not, the most described local service end return described local service end of execution is more newly requested according to described data
The request of generation updates the associated data of the associated data relevant with described data and updates request step.
Optionally, described renewal to the strange land service end described associated data of transmission storing described associated data please
Asking, concrete steps include:
It is more newly requested that described local service end sends described associated data to local message middleware;
It is more newly requested that described local message middleware receives described associated data;
It is more newly requested that described local message middleware sends described associated data to described strange land service end.
Optionally, also include:
Described local service end determines whether the more newly requested generation of described associated data;
If having, the most described local service end judges whether described local message middleware receives described associated data
More newly requested;
If not receiving, the most described local service end returns and performs described local service end to local message middleware
Send described associated data and update request step.
Optionally, also include:
Described local service end judges whether described local message middleware completes to the transmission of described strange land service end
Described associated data is more newly requested;
If completing, the most described local service end judges whether described local message middleware receives described strange land
What service end was fed back is properly received the information that described associated data is more newly requested;
If not receiving, the most described local service end returns and performs described local message middleware to described strange land
Service end sends described associated data and updates request step.
Optionally, if described associated data is stored in strange land service end described at least two, the most described to storage
It is more newly requested that the strange land service end of described associated data sends described associated data, particularly as follows:
Described local service end selectes one of them strange land service end storing described associated data, and to selected
It is more newly requested that the fixed strange land service end storing described associated data sends described associated data.
Accordingly, the application also provides for a kind of home server, including:
Data update request reception unit, more newly requested for receiving the data of client transmission;
Data updating unit, for more newly requested according to described data, will be stored in the described client letter of this locality
Corresponding data in breath is updated;
Information transmitting unit, if updating for described data, then please according to the more newly requested generation of described data
Ask the associated data updating the associated data relevant with described data more newly requested, to storing described pass
It is more newly requested that the strange land service end of connection data sends described associated data, and to number described in described client feedback
According to being updated successfully information.
Optionally, described relevant with described data according to the more newly requested generation request renewal of described data
The associated data of associated data more newly requested, send described to the strange land service end storing described associated data
Associated data is more newly requested, and concrete steps include:
Ask to update the associated data relevant with described data according to more newly requested generation of described data
Associated data is more newly requested;
Judge that described associated data is the most newly requested the most to generate;
The most then send described associated data to the strange land service end storing described associated data more newly requested;
If it is not, then return, execution is described asks renewal to have with described data according to more newly requested generation of described data
The associated data of the associated data of incidence relation updates request step.
Optionally, described renewal to the strange land service end described associated data of transmission storing described associated data please
Asking, concrete steps include:
Described associated data is sent more newly requested to local message middleware;
It is more newly requested that described local message middleware receives described associated data;
It is more newly requested that described local message middleware sends described associated data to described strange land service end.
Optionally, also include:
Associated data more newly requested generation result judging unit, is used for determining whether that described associated data updates
Request generates;
Associated data more newly requested reception result judging unit, is used for receiving the more newly requested life of described associated data
Become the judged result of result judging unit, if judged result is for having, then judge that described local message middleware is
It is no that to receive described associated data more newly requested;
First returns unit, for receiving the judgement of described associated data more newly requested reception result judging unit
As a result, if judged result is not for receive, then return execution described to the described association of transmission of local message middleware
Data update request step.
Optionally, also include:
Associated data more newly requested transmission result judging unit, is used for whether judging described local message middleware
Complete to send described associated data to described strange land service end more newly requested;
Strange land service end feedback information receives result judging unit, is used for receiving described associated data more newly requested
Send the judged result of result judging unit, if judged result is for completing, then judge in the middle of described local message
What whether part received described strange land service end feedback is properly received the letter that described associated data is more newly requested
Breath;
Second returns unit, receives sentencing of result judging unit for receiving described strange land service end feedback information
Disconnected result, if judged result is not for receive, then returns and performs described local message middleware to described strange land
Service end sends described associated data and updates request step.
Optionally, if described associated data is stored in strange land service end described at least two, the most described to storage
It is more newly requested that the strange land service end of described associated data sends described associated data, particularly as follows:
The strange land service end of one of them described associated data of storage selected, and to the chosen described pass of storage
It is more newly requested that the strange land service end of connection data sends described associated data.
The application also provides for a kind of snap information exchange method, including:
The strange land service end of storage associated data, receives the data that local service end receives from client according to it
The more newly requested associated data generating the request renewal described associated data relevant with described data updates
Request;
Described strange land service end completes corresponding described associated data more according to described associated data is more newly requested
New operation.
Optionally, the strange land service end of described storage associated data, receive local service end according to it from client
The more newly requested generation of data that end receives asks to update the described associated data relevant with described data
Associated data is more newly requested, particularly as follows:
The message-oriented middleware of the strange land service end of storage associated data, receives local service end according to it from client
The more newly requested generation of data that end receives asks to update the described associated data relevant with described data
Associated data is more newly requested.
Optionally, described strange land service end completes corresponding described association according to described associated data is more newly requested
The renewal operation of data, concrete steps include:
The described associated data that described strange land service end receives the transmission of described message-oriented middleware is more newly requested;
It is more newly requested that described strange land service end resolves described associated data, it is thus achieved that the changing value of described associated data;
Described strange land service end, according to the changing value of described associated data, updates described associated data.
Optionally, also include:
Described associated data ID during service end corresponding described associated data in described strange land is more newly requested, it is judged that institute
Whether the renewal operation stating associated data completes;
If being not fully complete, the most described strange land service end returns and performs described strange land service end according to described associated data
Changing value, update described associated data step.
Optionally, if described associated data is stored in strange land service end described at least two, the most described storage is closed
The strange land service end of connection data, receives the more newly requested life of data that local service end receives from client according to it
Become to ask the associated data updating the described associated data relevant with described data more newly requested, specifically
For:
The message-oriented middleware of the strange land service end storing described associated data selected by local service end, receives
Described local service end asks to update and described data according to its more newly requested generation of data received from client
The associated data of relevant described associated data is more newly requested.
Optionally, described strange land service end completes corresponding described association according to described associated data is more newly requested
The renewal operation of data, particularly as follows:
The chosen strange land service end storing described associated data completes according to described associated data is more newly requested
The renewal operation of corresponding described associated data.
Optionally, the described chosen strange land service end storing described associated data is according to described associated data
The more newly requested renewal operation completing corresponding described associated data, concrete steps include:
The described chosen strange land service end storing described associated data receives what described message-oriented middleware sent
Described associated data is more newly requested;
The described chosen strange land service end storing described associated data resolves the renewal of described associated data please
Ask, it is thus achieved that the changing value of described associated data;
The described chosen strange land service end change according to described associated data storing described associated data
Value, is more newly stored in the described associated data of this locality;
The described chosen strange land service end storing described associated data updates according to described associated data please
Ask, call the renewal data function of the unselected strange land service end storing described associated data;
The described chosen strange land service end change according to described associated data storing described associated data
Value, updates the described associated data not being updated by described renewal data function.
Accordingly, the application also provides for a kind of strange land server, for snap information described above side alternately
Method, including:
Associated data updates request reception unit, for receiving what home server received from client according to it
The more newly requested associated data generating the request renewal described associated data relevant with described data of data
More newly requested;
Associated data updating block, for completing corresponding described association according to described associated data is more newly requested
The renewal operation of data.
Optionally, described reception home server please from the more newly requested generation of data that client receives according to it
Ask the associated data updating the described associated data relevant with described data more newly requested, particularly as follows:
Message-oriented middleware receives home server and asks according to its more newly requested generation of data received from client
The associated data updating the described associated data relevant with described data is more newly requested.
Optionally, described according to the more newly requested renewal completing corresponding described associated data of described associated data
Operation, concrete steps include:
The described associated data that the described message-oriented middleware of described reception sends is more newly requested;
The described associated data of described parsing is more newly requested, it is thus achieved that the changing value of described associated data;
The described changing value according to described associated data, updates described associated data.
Optionally, also include:
Update operation and complete result judging unit, the described pass in corresponding described associated data is more newly requested
Connection data ID, it is judged that whether the renewal operation of described associated data completes;
Step returns unit, has operated the judged result of result judging unit for receiving described renewal, if
Judged result for being not fully complete, then returns and performs the described changing value according to described associated data, update described pass
Connection data step.
Optionally, if described associated data is stored in strange land server described at least two, the most described according to institute
Stating the more newly requested renewal operation completing corresponding described associated data of associated data, concrete steps include:
The described associated data receiving the transmission of described message-oriented middleware is more newly requested;
Resolve described associated data more newly requested, it is thus achieved that the changing value of described associated data;
According to the changing value of described associated data, more it is newly stored in the described associated data of this locality;
More newly requested according to described associated data, call the strange land clothes of the described associated data that storage is not updated
The renewal data function of business device;
According to the changing value of described associated data, updated by described renewal data function described in not being updated
Associated data.
Additionally, the application also provides for a kind of snap information interactive system, including: client, described above
Home server and strange land server described above.
Compared with prior art, the application has the advantage that
Snap information exchange method, home server, strange land server and the system that the application provides, passes through
The data that local service end receives client transmission are more newly requested;Described local service end is according to described data more
Newly requested, the corresponding data that will be stored in the described customer information of this locality is updated;If described data are
Updating, the most described local service end asks renewal relevant with described data according to more newly requested generation of described data
The associated data of the associated data of connection relation is more newly requested, sends out to the strange land service end storing described associated data
Send described associated data more newly requested, and be updated successfully information to data described in described client feedback.This skill
Art scheme is more newly requested by sending associated data to strange land service end, allows strange land service end complete associated data
Renewal, it is to avoid time-consuming interactive operation occurs, it is achieved the information that is rapidly completed is mutual, and the information that improves is imitated alternately
Rate.
Detailed description of the invention
Elaborate a lot of detail in the following description so that fully understanding the application.But the application
Can implement to be much different from alternate manner described here, those skilled in the art can without prejudice to
Doing similar popularization in the case of the application intension, therefore the application is not limited by following public being embodied as.
In this application, each provide a kind of snap information exchange method and a kind of home server, another
Plant snap information exchange method and a kind of strange land server and a kind of snap information interactive system, below for having
Body embodiment:
As it is shown in figure 1, the flow chart of the one of which snap information exchange method embodiment that it is the application.
Described method comprises the steps:
Step S101: the data that local service end receives client transmission are more newly requested.
When client needs local service end to provide data to update service, then need to be taken to this locality by client
It is more newly requested that business end sends data, and it is more newly requested that local service end need to receive these data, in order to performs according to it
Corresponding data update operation.Concrete, local service end can receive client by clicking on or by button etc.
The data that mode is initiated are more newly requested.
Illustrating as a example by payment transaction, in the present embodiment, local service end storage has paying party account
Information, paying party accounts information includes Send only Account balance amount information and electronic bill information etc.;Described electronic ticket
According to being electronics red packet, electronics discount card etc.;Electronic bill in paying party uses its account carries out propping up
Fu Shi, paying party i.e. needs by client, e.g., and mobile phone, Pad or PC etc., send to local service end
Electronic bill pays request, and it is more newly requested that the payment request of this electronic bill is data, the data that request updates
Including the electronic bill data in paying party accounts information;Local service end then needs to receive the electricity that client sends
Sub-ticket payment is asked, in order to performs corresponding data according to it and updates operation, in the present embodiment, specifically
It can be the electronic bill payment request of the electronic bill application reception client transmission of local service end.
Step S102: described local service end is more newly requested according to described data, will be stored in the described of this locality
Corresponding data in customer information is updated.
Data update solicited message can include that the data ID of requested renewal and the updated value of these data are i.e. asked
The data asking renewal be updated after numerical value, or include the data of the most requested renewal of changing value of these data
The information such as the value that should increase or the value of minimizing.The data renewal that client sends is received in local service termination
After request, i.e. need the data ID according to the requested renewal in these data renewal solicited message, from local service
The customer information of end storage finds corresponding data, according to these data update in solicited message requested
The updated value of the data updated or its changing value, the corresponding data that will be stored in the customer information of this locality is carried out
Update.
In the present embodiment, when the electronic bill in paying party uses its account pays, electronic bill
The data that the request request of payment updates include the electronic bill data in paying party accounts information, accordingly, electricity
Sub-ticket payment solicited message includes electronic bill data ID and the updated value of electronic bill data or its change
Value.Electronic bill at local service end is applied and is received the electronic bill that paying party sent by client and prop up
After paying request, i.e. need the electronic bill data according to the requested renewal in this electronic bill payment request information
ID, finds corresponding electronic bill data from the information of local service end storage, and e.g., find pays
The numerical value of the electronic bill data in money side's accounts information is 3;Then need to pay request letter according to this electronic bill
The updated value of the electronic bill data of the requested renewal in breath or its changing value, will be stored in the payment of this locality
Electronic bill data in side's accounts information are updated, i.e. to the selected electronic ticket in paying party account
According to checking and writing off, e.g., in this payment transaction, paying party uses an electronic bill in its account to enter
Row pays, and therefore, the updated value of electronic bill data is 2, its changing value is 1, i.e. the electricity of local service end
Sub-ticket applications need to replace the numerical value 3 of electronic bill data by updated value 2, or according to changing value 1 by electronic ticket
Become 2 according to the numerical value 3 of data, complete selected electronic bill is checked and write off operation.
Step S103: if described data update, the most described local service end is more newly requested according to described data
The associated data that the request of generation updates the associated data relevant with described data is more newly requested, to storage
It is more newly requested that the strange land service end of described associated data sends described associated data, and to described client feedback
Described data are updated successfully information.
The associated data with it with incidence relation can be there is in generally certain item data, after this item data is updated,
Associated data is the most to be updated, e.g., in student's final grade table, certain student's individual event subject achievement data
Associated data is the overall scores data of this student, after individual event subject achievement data is updated, and corresponding assembly
Achievement data are the most to be updated.
In the present embodiment, paying party selects to use electronic bill payment transaction fund to beneficiary.Need explanation
, electronic bill is before being issued, and it is total that publisher can have electronic bill distribution in margin account
The guarantee fund that amount is corresponding.Therefore, here cash deposit data and the beneficiary account of margin account information are believed
The collecting account balance data of breath, is and has the data of incidence relation with electronic bill data.Make electricity consumption
When sub-bill pays, after selected electronic bill is written off, also need to be corresponding from this electronic bill
Margin account is reduced corresponding guarantee fund, and increases corresponding collecting account remaining sum for beneficiary account,
After i.e. electronic bill data are updated, it is ensured that golden number evidence, collecting account balance data are the most to be updated.
It should be noted that, in some situation, certain item data and there is the associated data of incidence relation with it, can
Can be stored in the service end that strange land is different, after certain item data that will be stored in local service end updates,
The associated data that will be stored in strange land service end is also needed to be updated.As, in the present embodiment, in order to improve
Power system capacity and long-distance disaster ability, electronic bill pays application and is deployed to the service end that strange land is different, its
In, electronic bill pays application and includes that electronic bill application and account are applied, local service end after the deployment of strange land
Having electronic bill application and account to apply, strange land service end also has electronic bill application and account to apply.At this
In the case of Zhong, paying party accounts information will be there is and be stored in local service end, it is ensured that gold accounts information and
Beneficiary accounts information is stored in strange land service end.Will be stored in the electronic bill data of local service end
After renewal, also need to will be stored in the cash deposit data of strange land service end and collecting account balance data is updated.
In this case, to being stored in certain item data and the associated data thereof of strange land difference service end, carry out
The existing mode updated is, illustrates, at the electronics of local service end here as a example by electronic bill pays
After selected electronic bill is checked and write off by ticket applications, after i.e. electronic bill data are updated, it can be adjusted
With the account application of the strange land service end of storage guaranteed gold accounts information, complete guarantee fund reduces operation,
I.e. complete the renewal operation of cash deposit data.For the renewal of collecting account balance data, if beneficiary account
Information also is stored in this strange land service end, and the account application of this strange land service end can complete more than collecting account simultaneously
The renewal operation of specified number evidence, if beneficiary accounts information is stored in another strange land service end, at local service end
Electronic bill applied electronic bill data renewal operation after, its can call storage guaranteed gold account
The account application of the strange land service end of information, complete guarantee fund reduces operation, and calling storage has beneficiary account
The account application of the strange land service end of family information, completes the increase operation of collecting account remaining sum, and total data is more
After Xin, local service end i.e. can pay successful information to client feedback.
The operation applied due to the account of the electronic bill application call strange land service end of local service end, belongs to
Across the operation of strange land service end, therefore, this operation can produce longer time delay, e.g., if local service end
Electronic bill is applied, and the operation deadline calling the application of its account is 10ms, and local service end takes with strange land
Distance between business end is more than 1500 kilometers, then the electronic bill application of local service end, calls strange land clothes
The operation of the account application of business end will produce the time delay of more than 30ms, i.e. should complete across the operation of strange land service end
The one-tenth time is more than 40ms.Owing to above-mentioned information interactive process exists time-consuming interactive operation, payment is caused to be prolonged
Time, i.e. pay the deadline long.
Time delay is produced alternately, in the method that the application provides, if above-mentioned steps S102 is in order to avoid information
Completing the operation of the renewal to described data, the most described local service end also needs according to described data
The more newly requested associated data generating the request renewal associated data relevant with described data updates please
Ask, send described associated data to the strange land service end storing described associated data more newly requested, and to described
Described in client feedback, data are updated successfully information.I.e. local service end will be stored in this locality requested more
After new data update, only need to generate associated data more newly requested, send this association to strange land service end
Data are more newly requested, and are updated successfully information to data described in described client feedback, it is not necessary to carry out across
Strange land service end is called function and is completed to be stored in the renewal operation of the associated data of strange land service end, and incidence number
According to update operation can allow storage associated data strange land service end complete.Final realization, by strange land
It is more newly requested that service end sends associated data, allows strange land service end complete the renewal of associated data, it is to avoid occurs
Time-consuming interactive operation, it is achieved be rapidly completed information mutual, improve information interactive efficiency.It should be noted that,
The method provided in application the application carries out in information interactive process, therefore, to assure that the more newly requested quilt of associated data
It is delivered to strange land service end, so can ensure that the described data to described client feedback are updated successfully information
Correctness.
In the present embodiment, described local service end generates request renewal and institute according to described data are more newly requested
The associated data stating the relevant associated data of data is more newly requested, to storing the different of described associated data
It is more newly requested that ground service end sends described associated data, and concrete steps include: described local service end is according to institute
State data more newly requested generation request and update the associated data of the associated data relevant with described data more
Newly requested;Described local service end judges that described associated data is the most newly requested and the most generates;The most then institute
State local service end more newly requested to the strange land described associated data of service end transmission storing described associated data;
If it is not, the most described local service end returns performs described local service end according to the more newly requested generation of described data
Request updates the associated data of the associated data relevant with described data and updates request step.
Specific to payment transaction, in the present embodiment, if above-mentioned steps S102 has completed to described electronic bill
The renewal operation of data, the most in this step, the electronic bill application of local service end also needs according to electronic ticket
Generate request according to the request of payment and update the associated data of the associated data relevant with electronic bill data more
Newly requested.Owing to the associated data of electronic bill data is cash deposit data and collecting account balance data,
Here, associated data is more newly requested can be electronic bill payment document.In order to ensure electronic bill and electronics
The concordance of ticket payment document status, in the situation that electronic bill data have been updated, i.e. electronic bill is
Situation about being written off, electronic bill payment document must create successfully.Therefore, generation electronics is being performed
After bill document step, the electronic bill application of local service end also needs whether to judge electronic bill payment document
Generate;The most then local service end electronic bill application to storage cash deposit data and collecting account more than
The strange land service end of specified number evidence sends electronic bill document;If it is not, then return the electronics performing local service end
Ticket applications pays request according to electronic bill and generates the pass that request renewal is relevant with electronic bill data
The associated data of connection data updates request step.
It should be noted that, in the present embodiment, described to the strange land service end transmission storing described associated data
Described associated data is more newly requested, and concrete steps include: described local service end is sent out to local message middleware
Send described associated data more newly requested;It is more newly requested that described local message middleware receives described associated data;
It is more newly requested that described local message middleware sends described associated data to described strange land service end.As, local
The electronic bill application of service end sends electronic bill payment document to local message middleware application;This locality disappears
Breath middleware application receives electronic bill payment document;Local message middleware application sends to strange land service end
Electronic bill payment document.
It should be noted that, in the present embodiment, after described data update, first local service end can be
Perform to be updated successfully information to data described in described client feedback, then perform according to described data more newly requested
The associated data that the request of generation updates the associated data relevant with described data is more newly requested, to storage
It is more newly requested that the strange land service end of described associated data sends described associated data.In some cases, pass through
Client sends the more newly requested client of data, is only stored in local service end what client was experienced
The change of the data of requested renewal, and with these data, there is incidence relation to be stored in strange land service end
The change of associated data is unaware.Therefore, in this step, the data in requested renewal are updated
After, local service end generates request renewal and described number without first carrying out according to described data are more newly requested
Associated data according to relevant associated data is more newly requested, to the strange land clothes storing described associated data
It is more newly requested that business end sends described associated data, can be first carried out being updated successfully letter to client feedback data
Breath..
Such as the payment transaction in the present embodiment, paying party is during actual delivery, and experience is only payment
The the checking and writing off of electronic bill in side's account, and reducing and beneficiary account the guarantee fund of margin account
The operation that increases of collecting account remaining sum is unaware.Therefore, after electronic bill is written off, local service
End reduces the increase end of operation with collecting account remaining sum without waiting for guarantee fund, can be to client feedback
Pay successful information.And after electronic bill is written off, send electronic bill paying bill to strange land service end
According to, strange land service end the increase with collecting account remaining sum of reducing completing guarantee fund operates.Realize synchronizing
Payment process does not perform the operation across strange land service end, it is to avoid time-consuming interactive operation occur, it is achieved be rapidly completed
Payment process, improves payment efficiency.Meanwhile, strange land service end can receive electronic bill paying bill
According to being immediately performed the operation of asynchronous fund allocation afterwards, it is ensured that the promptness of beneficiary gathering.
It should be noted that, in order to ensure after associated data request generates, message-oriented middleware must receive this pass
Connection request of data, e.g., after electronic bill payment document generates, then must assure that message-oriented middleware receives this
Document information, in the present embodiment, also includes: described local service end determines whether described associated data
More newly requested generation;If having, the most described local service end judges whether described local message middleware receives institute
State associated data more newly requested;If not receiving, the most described local service end returns and performs described local service end
Send described associated data to local message middleware and update request step.
After receiving associated data request in order to ensure part between in the message, it is also necessary to ensure that this associated data is asked
Strange land service end can be delivered to, in the present embodiment, also include: described local service end judges described
It is more newly requested whether ground message-oriented middleware completes to send described associated data to described strange land service end;If completing,
The most described local service end judges whether described local message middleware receives described strange land service end feedback
It is properly received the information that described associated data is more newly requested;If not receiving, the most described local service end returns
Local message middleware described in receipt row sends the more newly requested step of described associated data to described strange land service end
Suddenly.
Here it should be noted that, in the present embodiment, if described associated data is stored at least two institute
State strange land service end, the most described to storing the strange land service end described associated data of transmission of described associated data more
It is newly requested, particularly as follows: described local service end selectes one of them strange land storing described associated data service
End, and it is more newly requested to send described associated data to the chosen strange land service end storing described associated data.
As, in electronic bill payment transaction, associated data guaranteed golden number evidence and collecting account balance data, it
May be stored in different strange land service ends respectively.In this case, local service end can be selected
Store the strange land service end of guaranteed gold, and be sent to electronic bill payment document, in this strange land service end
Complete guarantee fund reduce operation after, by its call storage collecting account remaining sum strange land service end account should
With, complete the increase operation of collecting account remaining sum.Certainly, in this case, local service end can also
The strange land service end of collecting account remaining sum is had to send out respectively to the strange land service end and storage storing guaranteed gold respectively
Power transmission sub-ticket payment document, is respectively completed corresponding data by the two strange land service end and updates operation.
In the above-described embodiment, it is provided that a kind of snap information exchange method, corresponding, this Shen
Please also provide for a kind of home server.As in figure 2 it is shown, the showing of the home server embodiment that it is the application
It is intended to.Owing to device embodiment is substantially similar to embodiment of the method, so describing fairly simple, it is correlated with it
Place sees the part of embodiment of the method and illustrates.Device embodiment described below is only schematically.
A kind of home server of the present embodiment, for the snap information exchange method described in above-mentioned any one,
Including:
Data update request reception unit 201, more newly requested for receiving the data of client transmission;
Data updating unit 202, for more newly requested according to described data, will be stored in the described client of this locality
Corresponding data in information is updated;
Information transmitting unit 203, if updating, then according to the more newly requested generation of described data for described data
The associated data that request updates the associated data relevant with described data is more newly requested, described to storage
It is more newly requested that the strange land service end of associated data sends described associated data, and to described in described client feedback
Data are updated successfully information.
Optionally, described relevant with described data according to the more newly requested generation request renewal of described data
The associated data of associated data more newly requested, send described to the strange land service end storing described associated data
Associated data is more newly requested, and concrete steps include:
Ask to update the associated data relevant with described data according to more newly requested generation of described data
Associated data is more newly requested;
Judge that described associated data is the most newly requested the most to generate;
The most then send described associated data to the strange land service end storing described associated data more newly requested;
If it is not, then return, execution is described asks renewal to have with described data according to more newly requested generation of described data
The associated data of the associated data of incidence relation updates request step.
Optionally, described renewal to the strange land service end described associated data of transmission storing described associated data please
Asking, concrete steps include:
Described associated data is sent more newly requested to local message middleware;
It is more newly requested that described local message middleware receives described associated data;
It is more newly requested that described local message middleware sends described associated data to described strange land service end.
Optionally, also include:
Associated data more newly requested generation result judging unit, is used for determining whether that described associated data updates
Request generates;
Associated data more newly requested reception result judging unit, is used for receiving the more newly requested life of described associated data
Become the judged result of result judging unit, if judged result is for having, then judge that described local message middleware is
It is no that to receive described associated data more newly requested;
First returns unit, for receiving the judgement of described associated data more newly requested reception result judging unit
As a result, if judged result is not for receive, then return execution described to the described association of transmission of local message middleware
Data update request step.
Optionally, also include:
Associated data more newly requested transmission result judging unit, is used for whether judging described local message middleware
Complete to send described associated data to described strange land service end more newly requested;
Strange land service end feedback information receives result judging unit, is used for receiving described associated data more newly requested
Send the judged result of result judging unit, if judged result is for completing, then judge in the middle of described local message
What whether part received described strange land service end feedback is properly received the letter that described associated data is more newly requested
Breath;
Second returns unit, receives sentencing of result judging unit for receiving described strange land service end feedback information
Disconnected result, if judged result is not for receive, then returns and performs described local message middleware to described strange land
Service end sends described associated data and updates request step.
Optionally, if described associated data is stored in strange land service end described at least two, the most described to storage
It is more newly requested that the strange land service end of described associated data sends described associated data, particularly as follows:
The strange land service end of one of them described associated data of storage selected, and to the chosen described pass of storage
It is more newly requested that the strange land service end of connection data sends described associated data.
Corresponding with above-mentioned snap information exchange method, it is mutual that the application also provides for another snap information
Method.Refer to Fig. 3, the embodiment of its wherein another snap information exchange method provided for the application
Schematic flow sheet, the part that the present embodiment is identical with first embodiment content repeats no more, refer to implement
Appropriate section in example one.Another snap information exchange method that the application provides includes:
Step S301: the strange land service end of storage associated data, receives local service end according to it from client
The more newly requested pass generating the request renewal described associated data relevant with described data of data received
Connection data are more newly requested.
When the local service end of the snap information exchange method described above implementing the application, complete to store
In the operation that the data of local requested renewal are updated, i.e. it is stored in the number of the requested renewal of this locality
According to being updated, it can ask to update and described data according to more newly requested generation of the data received from client
The associated data of relevant associated data is more newly requested, and to storing the strange land clothes of described associated data
It is more newly requested that business end sends described associated data.Now, the strange land service end of storage associated data, need to receive
Local service end asks renewal relevant with described data according to its more newly requested generation of data received from client
The associated data of the described associated data of connection relation is more newly requested.
As, in payment transaction, if electronic bill pays application and is deployed in the service end that strange land is different, its
In, electronic bill pays application and includes that electronic bill application and account are applied, local service end after the deployment of strange land
Having electronic bill application and account to apply, strange land service end also has electronic bill application and account to apply.And pay
Money side's accounts information is stored in local service end, margin account information and beneficiary accounts information and is stored
In strange land service end.In this case, when the snap information exchange method described above implementing the application
Local service end, complete the operation that selected electronic bill is carried out to be checked and write off, it can according to electronic bill
The request of payment generates electronic bill payment document, and to storage cash deposit data and collecting account balance data
Strange land service end sends this electronic bill payment document.This strange land service end need to receive this electronic bill paying bill
It is believed that breath.
It should be noted that, in the present embodiment, the strange land service end of described storage associated data, receive this locality
Service end asks to update and the relevant pass of described data according to its more newly requested generation of data received from client
The associated data of the described associated data of system is more newly requested, particularly as follows: the strange land service end of storage associated data
Message-oriented middleware, receives local service end and asks more according to its more newly requested generation of data received from client
The associated data of the new described associated data relevant with described data is more newly requested.
Step S302: described strange land service end completes corresponding described pass according to described associated data is more newly requested
The renewal operation of connection data.
Strange land service end has been received by associated data by above-mentioned steps S301 asks, in this step, and strange land
Service end need to be according to the more newly requested renewal operation completing corresponding described associated data of described associated data.As,
In payment transaction, after strange land service end receives electronic bill payment document, need to complete according to this document
Guarantee fund reduces and the increase of collecting account remaining sum.
In the present embodiment, described strange land service end completes corresponding institute according to described associated data is more newly requested
Stating the renewal operation of associated data, concrete steps include: described strange land service end receives described message-oriented middleware
The described associated data sent is more newly requested;It is more newly requested that described strange land service end resolves described associated data,
Obtain the changing value of described associated data;Described strange land service end is according to the changing value of described associated data, more
New described associated data.As, when the electronic bill that paying party has selected face amount to be 5 yuan pays,
Strange land service end resolves electronic bill payment document, it is thus achieved that the changing value of associated data be just 5, strange land services
End need to be according to this changing value, thus it is ensured that reduce the guarantee fund of 5 yuan in gold account, will increase by 5 in beneficiary account
The collecting account remaining sum of unit.
In order to ensure after strange land service end receives associated data request, it must complete the renewal of associated data
Operation, and update operation according only to the complete associated data of this request, in the present embodiment, also include: institute
State the corresponding described associated data of strange land service end more newly requested in described associated data ID, it is judged that described association
Whether the renewal operation of data completes;If being not fully complete, the most described strange land service end returns and performs described strange land clothes
Business end, according to the changing value of described associated data, updates described associated data step;If completing, end operation.
As, in payment transaction, after strange land service end receives electronic bill payment document information, it have to
Completing reducing and the increase of collecting account remaining sum of guarantee fund, period runs into any system exception, processes abnormal
It is required for retrying, till achievement;Because electronic bill is written off at local service end, it is necessary to
Electronic bill to be guaranteed is checked and write off and the final consistency of asynchronous fund allocation.And strange land service end is for same
Electronic bill payment document, only need to successfully carry out a fund allocation, and therefore, strange land service end can root
Idempotence control is done, it is ensured that the correctness of fund allocation according to the document number of electronic bill payment document.
It should be noted that, in the present embodiment, if described associated data is stored in strange land clothes described at least two
Business end, the strange land service end of the most described storage associated data, receive local service end and terminate from client according to it
The more newly requested generation of data received asks to update associating of the described associated data relevant with described data
Data are more newly requested, particularly as follows: the strange land service end storing described associated data selected by local service end
Message-oriented middleware, receive described local service end according to its from client receive the more newly requested generation of data
The associated data that request updates the described associated data relevant with described data is more newly requested.Certainly,
In other embodiments, if described associated data is stored in strange land service end described at least two, local service
End also can send associated data request to different strange land service ends, by the strange land storing relevant data respectively
Service end receives the request of this associated data respectively.
In the case of only selecting one of them strange land service end reception associated data request, in the present embodiment,
Described strange land service end is according to the more newly requested renewal behaviour completing corresponding described associated data of described associated data
Make, particularly as follows: the chosen strange land service end storing described associated data updates according to described associated data
The renewal having asked corresponding described associated data operates.
Corresponding, in the present embodiment, the described chosen strange land service storing described associated data
Hold according to the more newly requested renewal operation completing corresponding described associated data of described associated data, concrete steps
Including: the described chosen strange land service end storing described associated data receives described message-oriented middleware and sends
Described associated data more newly requested;The described chosen strange land service end storing described associated data resolves
Described associated data is more newly requested, it is thus achieved that the changing value of described associated data;Described in described chosen storage
The strange land service end of associated data, according to the changing value of described associated data, is more newly stored in the described pass of this locality
Connection data;The described chosen strange land service end storing described associated data updates according to described associated data
Request, calls the renewal data function of the unselected strange land service end storing described associated data;Described
The chosen strange land service end changing value according to described associated data storing described associated data, by institute
State and update the described associated data that data function renewal is not updated.
As, in payment transaction, local service end selectes the strange land service to storage guaranteed gold accounts information
End sends electronic bill payment document information, and the message-oriented middleware of the strange land service end of storage cash deposit data should
With receiving this document information, and send to the application of its electronic bill.The strange land service end of storage cash deposit data
Electronic bill application receive the payment document information that the application of this message-oriented middleware sends, and resolve this paying bill
It is believed that breath, it is thus achieved that payment;The electronic bill application call of the strange land service end of storage cash deposit data is originally
Ground account application, this account is applied according to this payment, is reduced the guarantee fund in margin account;Then
The electronic bill application call of the strange land service end of storage cash deposit data stores the different of collecting account balance data
The account application of ground service end, the application of this account, according to this payment, increases the gathering in beneficiary account
Account balance.
In the above-described embodiment, it is provided that another kind of snap information exchange method, corresponding, this
Application also provides for a kind of strange land server.Refer to Fig. 4, it is the enforcement of a kind of strange land server of the application
Illustrate and be intended to.Owing to device embodiment is substantially similar to embodiment of the method, so describing fairly simple, phase
The part seeing embodiment of the method in place of pass illustrates.Device embodiment described below is only schematically
's.
A kind of strange land server of the present embodiment, for another kind of snap information exchange method described above,
Including: associated data updates request reception unit 401, is used for receiving home server and terminates from client according to it
The more newly requested generation of data received asks to update associating of the described associated data relevant with described data
Data are more newly requested;Associated data updating block 402, for completing phase according to described associated data is more newly requested
The renewal operation of the described associated data answered.
Optionally, described reception home server please from the more newly requested generation of data that client receives according to it
Ask the associated data updating the described associated data relevant with described data more newly requested, particularly as follows:
Message-oriented middleware receives home server and asks according to its more newly requested generation of data received from client
The associated data updating the described associated data relevant with described data is more newly requested.
Optionally, described according to the more newly requested renewal completing corresponding described associated data of described associated data
Operation, concrete steps include:
The described associated data that the described message-oriented middleware of described reception sends is more newly requested;
The described associated data of described parsing is more newly requested, it is thus achieved that the changing value of described associated data;
The described changing value according to described associated data, updates described associated data.
Optionally, also include:
Update operation and complete result judging unit, the described pass in corresponding described associated data is more newly requested
Connection data ID, it is judged that whether the renewal operation of described associated data completes;
Step returns unit, has operated the judged result of result judging unit for receiving described renewal, if
Judged result for being not fully complete, then returns and performs the described changing value according to described associated data, update described pass
Connection data step.
Optionally, if described associated data is stored in strange land server described at least two, the most described according to institute
Stating the more newly requested renewal operation completing corresponding described associated data of associated data, concrete steps include:
The described associated data receiving the transmission of described message-oriented middleware is more newly requested;
Resolve described associated data more newly requested, it is thus achieved that the changing value of described associated data;
According to the changing value of described associated data, more it is newly stored in the described associated data of this locality;
More newly requested according to described associated data, call the strange land clothes of the described associated data that storage is not updated
The renewal data function of business device;
According to the changing value of described associated data, updated by described renewal data function described in not being updated
Associated data.
The embodiment of the present application also provides for a kind of snap information interactive system, as it is shown in figure 5, this system includes visitor
Home server 502 described in family end 501, above-described embodiment and the strange land server described in above-described embodiment
503。
Above to the application provide a kind of snap information exchange method, home server, strange land server and
The embodiment of system is described in detail, and specific case used herein is to the principle of the application and enforcement
Mode is set forth, and the explanation of above example is only intended to help and understands the present processes and core thereof
Thought;Simultaneously for one of ordinary skill in the art, according to the thought of the application, in specific embodiment party
All will change in formula and range of application.In sum, this specification content should not be construed as this Shen
Restriction please.
In a typical configuration, calculating equipment includes one or more processor (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
(RAM) and/or the form such as Nonvolatile memory, such as read only memory (ROM) or flash memory (flash RAM).
Internal memory is the example of computer-readable medium.
1, computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technology realize information storage.Information can be computer-readable instruction, data structure, journey
The module of sequence or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), its
The random access memory (RAM) of his type, read only memory (ROM), electrically erasable is read-only deposits
Reservoir (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory
(CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic magnetic
Disk storage or other magnetic storage apparatus or any other non-transmission medium, can be used for storage can be set by calculating
The standby information accessed.According to defining herein, computer-readable medium does not include non-temporary computer-readable matchmaker
Body (transitory media), such as data signal and the carrier wave of modulation.
2, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer
Program product.Therefore, the application can use complete hardware embodiment, complete software implementation or combine software
Form with the embodiment of hardware aspect.And, the application can use and wherein include meter one or more
The computer-usable storage medium of calculation machine usable program code (include but not limited to disk memory,
CD-ROM, optical memory etc.) form of the upper computer program implemented.