CN104318475B - A kind of method and apparatus for obtaining simulation receipt - Google Patents
A kind of method and apparatus for obtaining simulation receipt Download PDFInfo
- Publication number
- CN104318475B CN104318475B CN201410601562.1A CN201410601562A CN104318475B CN 104318475 B CN104318475 B CN 104318475B CN 201410601562 A CN201410601562 A CN 201410601562A CN 104318475 B CN104318475 B CN 104318475B
- Authority
- CN
- China
- Prior art keywords
- receipt
- simulation
- messages
- message
- tested
- 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.)
- Active
Links
- 238000004088 simulation Methods 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000012360 testing method Methods 0.000 claims abstract description 49
- 238000012545 processing Methods 0.000 claims abstract description 36
- 238000012544 monitoring process Methods 0.000 claims abstract description 9
- 230000008569 process Effects 0.000 claims abstract description 8
- 235000006719 Cassia obtusifolia Nutrition 0.000 claims description 6
- 235000014552 Cassia tora Nutrition 0.000 claims description 6
- 244000201986 Cassia tora Species 0.000 claims description 6
- 230000006855 networking Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000002844 melting Methods 0.000 description 1
- 230000008018 melting Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Landscapes
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the invention discloses it is a kind of obtain simulation receipt method and apparatus, including:VSBS calls the MQ message that the VSBT monitoring financial business to be tested is sent, and the MQ message includes MT messages;Batch processing initialization process is called to read the configuration file of financial business to be tested;According to the content of the configuration file and the MT messages, corresponding java modules is called to handle the MT messages, obtain simulation receipt, the simulation receipt has the identical function with testing bank identification number BIC.It can be seen that, the financial business to be tested is tested by using VSBS, the MQ message that the VSBT monitoring financial business to be tested is called to send, the content of the MT messages included according to configuration file and the MQ message obtains simulation receipt to be tested instead of the function of test b IC, thus no longer since it is desired that with SWIFT test networks network and pay Internet utilization fee, reduce testing cost.
Description
Technical field
The present invention relates to financial field, more particularly to a kind of method and apparatus for obtaining simulation receipt.
Background technology
Bank is required for using global cooperative bank's Financial Telecommunication association in the financial business of processing electronization
(Society for Worldwide Interbank Financial Telecommunications, SWIFT) network is completed
Operation.
For newly researching and developing or unissued financial business, bank need first to be tested whether to determine these financial business
It can correctly be run on SWIFT networks, realize due function, these financial business can just be put into only after being successfully tested
Actual motion.
SWIFT test networks are currently mainly used test these it is new research and development or unissued financial business, and into
, it is necessary to which the bank identification number (Bank Identification Code, BIC) used is tested with SWIFT in row test process
Test b IC in network is replaced.However, bank connection SWIFT test network test financial business needs to pay Internet utilization fee
With raising testing cost.
The content of the invention
In order to solve the above technical problem, the present invention provides a kind of method and apparatus for simulating receipt so that need not
Test b IC can also be obtained by connecting virtual SWIFT networks, complete to test and saved testing cost.
The embodiment of the invention discloses following technical solutions:
A kind of method for obtaining simulation receipt, the described method includes:
VSBS calls the MQ message that the VSBT monitoring financial business to be tested is sent, and the MQ message includes MT reports
Text;
Batch processing initialization process of the VSBS calling reads the configuration file of financial business to be tested;
The VSBS calls corresponding java modules to the MT according to the content of the configuration file and the MT messages
Message is handled, and obtains simulation receipt, and the simulation receipt has the identical function with testing bank identification number BIC.
Preferably,
The java modules include javabean and java.util.
Preferably, the VSBS calls corresponding java modules to handle the MT messages, including:
The VSBS calls corresponding java modules to carry out relevant string processing to the MT messages.
Preferably,
The attribute for the simulation receipt that the attribute of the obtained simulation receipt and the configuration file are included is identical.
A kind of device for obtaining simulation receipt, including:
Monitoring unit is treated for calling described in virtual global cooperative bank's Financial Telecommunication association batch processing thread VSBT monitoring
The message queue MQ message that financial business is sent is tested, the MQ message includes type of message MT messages;
Reading unit, for batch processing initialization (Batch Init) process to be called to read the configuration of financial business to be tested
File;
Processing unit for the content according to the configuration file and the MT messages, calls corresponding java modules pair
The MT messages are handled, and obtain simulation receipt, and the simulation receipt has the identical work(with testing bank identification number BIC
Energy.
Preferably,
The java modules include javabean and java.util.
Preferably,
The processing unit, specifically for corresponding java modules is called to carry out at relevant character string the MT messages
Reason.
Preferably,
The simulation that the attribute and the configuration file of the simulation receipt obtained by the processing unit are included is returned
The attribute held is identical.
By using virtual global cooperative bank's Financial Telecommunication association batch processing service it can be seen from above-mentioned technical proposal
It tests the financial business to be tested, calls and treated described in virtual global cooperative bank's Financial Telecommunication association batch processing thread monitor
Test the MQ message that financial business is sent, the contents of the MT messages included according to configuration file and the MQ message is called corresponding
Java modules handle the MT messages, obtain simulation receipt, with the simulation receipt function of test b IC are replaced to carry out
Test, thus when testing the financial business to be tested, no longer since it is desired that networking with the SWIFT test networks
And Internet utilization fee is paid, reduce testing cost.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also
To obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of method flow diagram for obtaining simulation receipt provided in an embodiment of the present invention;
Fig. 2 is a kind of structure drawing of device for obtaining simulation receipt provided in an embodiment of the present invention.
Specific embodiment
A kind of virtual global cooperative bank's Financial Telecommunication association batch processing service (Virtual Swift of the embodiment of the present invention
Batch Servlet, VSBS) financial business to be tested is tested to simulate SWITF test networks, when to be tested in test
During financial business, by calling virtual global cooperative bank's Financial Telecommunication association batch processing thread (Virtual Swift Batch
Thread, VSBT) monitor message queue (Message Queue, MQ) message that the financial business to be tested is sent, according to
The content of type of message (Message Type, MT) message included by configuration file and the MQ message calls corresponding java
Module is handled, and is obtained simulation receipt by handling result, when test needs to use test b IC, is used the simulation
Receipt is come the function of replacing the test b IC completions test b IC identical, completion test.Thus to the ensaying to be measured
When melting business and being tested, no longer since it is desired that networking with the SWIFT test networks and paying Internet utilization fee, reduce
Testing cost.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is explicitly described, it is clear that described embodiment be the present invention
Part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having
All other embodiments obtained under the premise of creative work are made, belong to the scope of protection of the invention.
Embodiment one
Referring to Fig. 1, it is a kind of method flow diagram for obtaining simulation receipt provided in an embodiment of the present invention, the method
Including:
S101:VSBS calls the MQ message that the VSBT monitoring financial business to be tested is sent, and the MQ message includes
MT messages.
S102:Batch processing initialization process of the VSBS calling reads the configuration file of financial business to be tested.
The configuration file is for obtaining the configuration file of simulation receipt, and required simulation is configured in the configuration file
The related request and information of receipt mainly include the attribute of simulation receipt, analysis mode of MT messages etc..
It is illustrated by taking the attribute for simulating receipt as an example:
Such as the if category of the simulation receipt in the configuration file for the shown financial business to be tested that the VSBS is read
Property be confirm character (Acknowledgement, ACK) state, then in the correspondence financial business to be tested that S103 is obtained
The attribute of simulation receipt be receipt ACK.If the attribute of the simulation receipt in the configuration file is negative response
(Negative Acknowledgment, NAK) state, then in the mould for the correspondence financial business to be tested that S103 is obtained
The attribute for intending receipt is receipt NAK.The receipt attribute of simulation receipt in the configuration file can be set in advance, when
During testing the financial business to be tested, when test needs to obtain receipt ACK, then just set in the configuration file
Simulation receipt attribute for ACK states, when test needs to obtain receipt NAK, then just set the simulation in the configuration file
Receipt attribute is NAK states.That is, optional, the attribute and the configuration file of the obtained simulation receipt are wrapped
The attribute of the simulation receipt contained is identical.
Note:ACK and NAK specific receipt contents used in SWIFT.
S103:The VSBS calls corresponding java modules pair according to the content of the configuration file and the MT messages
The MT messages are handled, and obtain simulation receipt, and the simulation receipt has the identical function with test b IC.
MQ message is the message-oriented middleware that IBM is provided, and is used for transmission MT messages, in the embodiment of the present application, does not limit
Read the mode of MT message contents in the MQ message.
Can corresponding simulation receipt be returned to by configuration file and the MT messages of acquisition as requested.
It is illustrated by taking concrete application scene as an example, can ACK be such as configured to, according to acquisition according to the configuration file
The simulation of MT messages returns to ACK receipts (the standard success receipt of SWIFT messages);Alternatively, it can such as be configured according to the configuration file
For NAK, simulated according to the MT messages of acquisition and return to NAK receipts (the standard failure receipt of SWIFT messages);Alternatively, can according to institute
Configuration file is stated, is such as configured to ERROR, according to the MT messages of acquisition, simulation returns to error message (being used for limit scene);Or
Person can such as be configured to FINCOPY according to the configuration file, and simulation returns to ACK receipts and Central Bank's receipt message (012/
The system message of 019SWIFT messages);Alternatively, can SWIFTTEST be such as configured to, according to acquisition according to the configuration file
MT messages, after replacing relevant information, for first line of a couplet SWIFT test networks.
Optionally, the java modules mainly include javabean and java.util.Can certainly be other java moulds
Block.
Optionally, java modules is called to carry out relevant string processing to the MT messages.
The corresponding java modules that the VSBS is called, by the relevant information in configuration file to the MT messages that get
Content carries out respective handling.
As it can be seen that the ensaying to be measured is tested by using virtual global cooperative bank's Financial Telecommunication association batch processing service
Melt business, call what financial business to be tested described in virtual global cooperative bank's Financial Telecommunication association batch processing thread monitor was sent
MQ message, the content of the MT messages included according to configuration file and the MQ message call corresponding java modules to report the MT
Text is handled, and obtains simulation receipt, with the simulation receipt function of test b IC is replaced to be tested, thus to described
When financial business to be tested is tested, no longer since it is desired that networking with the SWIFT test networks and paying Internet utilization fee
With reducing testing cost.
Embodiment two
The present embodiment is the device embodiment of corresponding embodiment one, and Fig. 2 is a kind of acquisition mould provided in an embodiment of the present invention
Intend the structure drawing of device of receipt, as shown in Fig. 2, the device 200 for obtaining simulation receipt includes:
Monitoring unit 201, for calling the MQ message that the VSBT monitoring financial business to be tested is sent, the MQ message
Include MT messages.
Reading unit 202, for batch processing initialization process to be called to read the configuration file of financial business to be tested.
The configuration file is for obtaining the configuration file of simulation receipt, and required simulation is configured in the configuration file
The related request and information of receipt mainly include the attribute of simulation receipt, analysis mode of MT messages etc..
It is illustrated by taking the attribute for simulating receipt as an example:
Such as if the reading unit 202 read shown financial business to be tested configuration file in simulation
The attribute of receipt is ACK states, then is returned in the simulation for the correspondence financial business to be tested that the processing unit 203 obtains
The attribute held is receipt ACK.If the attribute of the simulation receipt in the configuration file is NAK states, then in the processing
The attribute of the simulation receipt for the correspondence financial business to be tested that unit 203 obtains is receipt NAK.In the configuration file
The receipt attribute of simulation receipt can be set in advance, when during the financial business to be tested is tested, working as test
It needs to obtain receipt ACK, then the simulation receipt attribute in the configuration file is just set as ACK states, when test needs
To receipt NAK, then it is NAK states just to set the simulation receipt attribute in the configuration file.That is, it is optional, lead to
Cross the attribute phase for the simulation receipt that the attribute for the simulation receipt that the processing unit obtains and the configuration file are included
Together.
Note:ACK and NAK specific receipt contents used in SWIFT.
Processing unit 203 for the content according to the configuration file and the MT messages, calls corresponding java modules
The MT messages are handled, obtain simulation receipt, the simulation receipt has the identical work(with testing bank identification number BIC
Energy.
MQ message is the message-oriented middleware that IBM is provided, and is used for transmission MT messages, in the embodiment of the present application, does not limit
Read the mode of MT message contents in the MQ message.
Can corresponding simulation receipt be returned to by configuration file and the MT messages of acquisition as requested.
It is illustrated by taking concrete application scene as an example, can ACK be such as configured to, according to acquisition according to the configuration file
The simulation of MT messages returns to ACK receipts (the standard success receipt of SWIFT messages);Alternatively, it can such as be configured according to the configuration file
For NAK, simulated according to the MT messages of acquisition and return to NAK receipts (the standard failure receipt of SWIFT messages);Alternatively, can according to institute
Configuration file is stated, is such as configured to ERROR, according to the MT messages of acquisition, simulation returns to error message (being used for limit scene);Or
Person can such as be configured to FINCOPY according to the configuration file, and simulation returns to ACK receipts and Central Bank's receipt message (012/
The system message of 019SWIFT messages);Alternatively, can SWIFTTEST be such as configured to, according to acquisition according to the configuration file
MT messages, after replacing relevant information, for first line of a couplet SWIFT test networks.
Optionally, the java modules include javabean and java.util.Can certainly be other java modules.
Optionally, the processing unit 203 is related specifically for corresponding java modules is called to carry out the MT messages
String processing.
As it can be seen that the ensaying to be measured is tested by using virtual global cooperative bank's Financial Telecommunication association batch processing service
Melt business, call what financial business to be tested described in virtual global cooperative bank's Financial Telecommunication association batch processing thread monitor was sent
MQ message, the content of the MT messages included according to configuration file and the MQ message call corresponding java modules to report the MT
Text is handled, and obtains simulation receipt, with the simulation receipt function of test b IC is replaced to be tested, thus to described
When financial business to be tested is tested, no longer since it is desired that networking with the SWIFT test networks and paying Internet utilization fee
With reducing testing cost.
As seen through the above description of the embodiments, those skilled in the art can be understood that above-mentioned implementation
All or part of step in example method can add the mode of general hardware platform to realize by software.Based on such understanding,
Technical scheme substantially in other words can be embodied the part that the prior art contributes in the form of software product
Out, which can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions
With so that a computer equipment (can be personal computer, the network communications such as server or Media Gateway are set
It is standby) perform method described in some parts of each embodiment of the present invention or embodiment.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment it
Between just to refer each other for identical similar part, the highlights of each of the examples are difference from other examples.
For equipment and system embodiment, since it is substantially similar to embodiment of the method, so describe fairly simple,
The relevent part can refer to the partial explaination of embodiments of method.Equipment and system embodiment described above is only schematic
, wherein may or may not be as the unit that separating component illustrates physically separate, shown as unit
Component may or may not be physical location, you can be located at a place or can also be distributed to multiple networks
On unit.Some or all of module therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
Those of ordinary skill in the art are without creative efforts, you can to understand and implement.
The above is only the preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It should refer to
Go out, for those skilled in the art, without departing from the principle of the present invention, can also make several
Improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Claims (6)
- A kind of 1. method for obtaining simulation receipt, which is characterized in that the described method includes:Virtual global cooperative bank's Financial Telecommunication association batch processing service VSBS calls virtual global cooperative bank's Financial Telecommunication association Meeting batch processing thread VSBT monitors the message queue MQ message that financial business to be tested is sent, and the MQ message includes message class Type MT messages;Batch processing initialization process of the VSBS calling reads the configuration file of financial business to be tested;The VSBS calls corresponding java modules to the MT messages according to the content of the configuration file and the MT messages It is handled, obtains simulation receipt, the simulation receipt has the identical function with testing bank identification number BIC, obtained institute The attribute for stating the simulation receipt that the attribute of simulation receipt and the configuration file are included is identical.
- 2. according to the method described in claim 1, it is characterized in that,The java modules include javabean and java.util.
- 3. method according to claim 1 or 2, which is characterized in that the VSBS calls corresponding java modules to described MT messages are handled, including:The VSBS calls corresponding java modules to carry out relevant string processing to the MT messages.
- 4. a kind of device for obtaining simulation receipt, which is characterized in that including:Monitoring unit, for virtual global cooperative bank's Financial Telecommunication association batch processing thread VSBT to be called to monitor finance to be tested The message queue MQ message that business is sent, the MQ message include type of message MT messages;Reading unit, for batch processing initialization process to be called to read the configuration file of financial business to be tested;Processing unit for the content according to the configuration file and the MT messages, calls corresponding java modules to described MT messages are handled, and obtain simulation receipt, and the simulation receipt has the identical function with testing bank identification number BIC, leads to Cross the attribute phase for the simulation receipt that the attribute for the simulation receipt that the processing unit obtains and the configuration file are included Together.
- 5. device according to claim 4, which is characterized in thatThe java modules include javabean and java.util.
- 6. device according to claim 4 or 5, which is characterized in thatThe processing unit, specifically for corresponding java modules is called to carry out relevant string processing to the MT messages.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410601562.1A CN104318475B (en) | 2014-10-30 | 2014-10-30 | A kind of method and apparatus for obtaining simulation receipt |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410601562.1A CN104318475B (en) | 2014-10-30 | 2014-10-30 | A kind of method and apparatus for obtaining simulation receipt |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104318475A CN104318475A (en) | 2015-01-28 |
CN104318475B true CN104318475B (en) | 2018-05-25 |
Family
ID=52373701
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410601562.1A Active CN104318475B (en) | 2014-10-30 | 2014-10-30 | A kind of method and apparatus for obtaining simulation receipt |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104318475B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110661853A (en) * | 2019-09-06 | 2020-01-07 | 深圳壹账通智能科技有限公司 | Data proxy method, device, computer equipment and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003107137A3 (en) * | 2002-06-18 | 2004-03-18 | Phil Kongtcheu | Methods, systems and computer program products to facilitate the formation and trading of derivatives contracts |
CN101344955A (en) * | 2008-08-26 | 2009-01-14 | 中国工商银行股份有限公司 | Bank message processing method and apparatus |
CN102254287A (en) * | 2011-06-27 | 2011-11-23 | 中国建设银行股份有限公司 | Bank business mobile processing system and method |
CN202143092U (en) * | 2011-03-18 | 2012-02-08 | 中国工商银行股份有限公司 | Message processing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070294224A1 (en) * | 2006-06-16 | 2007-12-20 | Jean-Jacques Heler | Tracking discrete elements of distributed transactions |
-
2014
- 2014-10-30 CN CN201410601562.1A patent/CN104318475B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2003107137A3 (en) * | 2002-06-18 | 2004-03-18 | Phil Kongtcheu | Methods, systems and computer program products to facilitate the formation and trading of derivatives contracts |
CN101344955A (en) * | 2008-08-26 | 2009-01-14 | 中国工商银行股份有限公司 | Bank message processing method and apparatus |
CN202143092U (en) * | 2011-03-18 | 2012-02-08 | 中国工商银行股份有限公司 | Message processing system |
CN102254287A (en) * | 2011-06-27 | 2011-11-23 | 中国建设银行股份有限公司 | Bank business mobile processing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN104318475A (en) | 2015-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104156863B (en) | The order processing system and method for OTA websites | |
US20080208610A1 (en) | Methods and Systems for Script Operations Management | |
CN111245900B (en) | Distributed message sending processing system and processing method thereof | |
CN101119392B (en) | SOCKET Unified Access Method | |
CN112288577B (en) | Transaction processing method, device, electronic equipment and medium for distributed service | |
CN100466541C (en) | Business network tracking system and tracking method | |
CN110727560A (en) | Cloud service alarm method and device | |
CN108664385A (en) | A kind of test method and device of application programming interface | |
CN113179301A (en) | File downloading method and device, storage medium and electronic device | |
CN110727563A (en) | Cloud service alarm method and device for preset customer | |
CN104318475B (en) | A kind of method and apparatus for obtaining simulation receipt | |
CN110889682A (en) | Payment information processing method, device, medium and equipment based on block chain | |
CN114448776A (en) | Link tracking method and device | |
CN112418765B (en) | Logistics order cancellation confirmation method and device | |
CN112272211A (en) | Service request processing method, device and system | |
CN107451059A (en) | A kind of method for testing software and test device | |
JP5382966B1 (en) | Notification system | |
CN107453937A (en) | The management method and equipment in network connection pond | |
CN114257632A (en) | Disconnection reconnection method and device, electronic equipment and readable storage medium | |
CN114090933A (en) | Cross-domain information interaction method, device and medium | |
CN111049938A (en) | Message notification method and device, electronic equipment and readable storage medium | |
CN113141366B (en) | Message submitting method and device, storage medium and electronic equipment | |
CN100454272C (en) | Method for processing error information with software component | |
CN115460264B (en) | Access method and system for target server | |
CN110852537A (en) | Service quality detection method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |