CN106095424A - Apply the treating method and apparatus called of concluding the business in assembly - Google Patents
Apply the treating method and apparatus called of concluding the business in assembly Download PDFInfo
- Publication number
- CN106095424A CN106095424A CN201610395737.7A CN201610395737A CN106095424A CN 106095424 A CN106095424 A CN 106095424A CN 201610395737 A CN201610395737 A CN 201610395737A CN 106095424 A CN106095424 A CN 106095424A
- Authority
- CN
- China
- Prior art keywords
- engineering
- transaction
- code
- message object
- modular
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/33—Intelligent editors
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention provides the treating method and apparatus called of concluding the business in application assembly.The method includes: being retrained according to predetermined engineering structure by the code of application assembly, wherein, described predetermined engineering structure includes: engineering is disposed in the public method engineering needed for each application assembly, the modular engineering in each application assembly and packing;Described public method engineering, described modular engineering and described packing are disposed engineering configure;Code and configuration, the described packing of described public method engineering are disposed code and configuration and the code of described modular engineering of engineering and configured merging, and be packaged into war bag and merge deployment, in order to described modular engineering is able to access that the message object of the transaction of application assembly.In accordance with the invention it is possible on the premise of not revising application component code, when merging deployment, make a module can access the transaction of another module.
Description
Technical field
The present invention relates to apply assembly to process, specifically for, relate to a kind of applying the process called of concluding the business in assembly
Method and apparatus.
Background technology
In bank product systematic difference Components Development, there is the application assembly realizing various difference in functionality, different
Application assembly is generally by different developer's exploitations, and writing style and the style of code are the most different.These difference in functionalitys
Application assembly can receive on-line transaction, it is also possible to called by other modules.But, by based on application for application assembly need
During disposing, it usually needs the correlative code of application assembly was modified, due to the generation of different application assembly
Code writing style and style etc. is different, and in causing disposing, the amendment of code processes and requires a great deal of time and energy,
Thus cause the whole efficiency applying deployment of components relatively low.
Summary of the invention
For solving above-mentioned technical problem, the invention provides and a kind of apply the processing method called of concluding the business in assembly, it is possible to
On the premise of not revising application component code, when disposing applying assembly to merge, make a modular engineering can access another
The transaction of modular engineering.
First aspect according to embodiment of the present invention, it is provided that a kind of apply the processing method called of concluding the business in assembly,
Described method includes: being retrained according to predetermined engineering structure by the code of application assembly, wherein, described predetermined engineering structure includes:
Engineering is disposed in public method engineering needed for each application assembly, the modular engineering in each application assembly and packing, described public
The message object base class of methods engineering definition transaction, described modular engineering includes the message object of transaction and depends on described public affairs
Methods engineering altogether;Described public method engineering, described modular engineering and described packing are disposed engineering configure;By described public affairs
Altogether the code of engineering and configuration and the code of described modular engineering and configuration are disposed in the code of methods engineering and configuration, described packing
Merge, and be packaged into war bag and merge deployment, in order to described modular engineering is able to access that the message pair of the transaction applying assembly
As.
In certain embodiments of the present invention, described to described public method engineering, described modular engineering with described beat
Bag is disposed engineering and is carried out configuration and include: in the database access file of public sheet of described public method engineering, common code
Error code be mapped to error description and configure;Data source and daily record that described packing is disposed the association of engineering are joined
Put;Error code in the data access file of contingency table of described modular engineering, affiliated application assembly is mapped to error description,
The transaction code that online message mapping relations, affiliated application assembly provide is closed with the mapping relations and described modular engineering that service class
Data source and the daily record of connection configure.
In certain embodiments of the present invention, by with the incoming message object of transaction code and called transaction for inputting
The cross-module interface of parameter determines the outgoing message object of called transaction.
In certain embodiments of the present invention, by with the incoming message object of transaction code and called transaction for inputting
The cross-module interface of parameter determines that the outgoing message object of called transaction includes: preserve current transaction code and current trading environment
Variable, builds the described transaction code trading environment variable corresponding with described transaction code as new trading environment, described new
Trading environment is inquired about from local service LOGIN directory the service class that described transaction code is corresponding, defeated by described called transaction
Enter message object and obtain outgoing message object as service class described in input parameter call, destroy described new trading environment, extensive
Multiple described current transaction code and current trading environment variable, and return described outgoing message object.
In certain embodiments of the present invention, by with the incoming message object of transaction code and called transaction for inputting
The cross-module interface of parameter determines that the outgoing message object of called transaction includes: from remote service LOGIN directory, inquiry is described
The address information of the server that transaction code is corresponding;Be converted to the incoming message object of described called transaction input data message
It is sent to the server that the address information of described server is corresponding;Receive the output data message that described server returns, and will
Described output data message is converted to the outgoing message object of described called transaction, and returns described outgoing message object.
In certain embodiments of the present invention, described method also includes: be periodically generated modular engineering, and by described periodically
The modular engineering generated is packaged into jar bag, wherein, described in the code of modular engineering that is periodically generated derive from each modular engineering
Interface object.
Second aspect according to embodiment of the present invention, it is provided that a kind of apply the processing means called of concluding the business in assembly,
Described device includes: pretreatment module, for being retrained according to predetermined engineering structure by the code of application assembly, wherein, described pre-
Determine engineering structure to include: the public method engineering needed for each application assembly, the modular engineering in each application assembly and packing portion
Administration's engineering, the message object base class of described public method engineering definition transaction, described modular engineering includes the message object of transaction
And depend on described public method engineering;And, described public method engineering, described modular engineering and described packing are disposed
Engineering configures;Merge module, the code of described public method engineering and configuration, described packing are disposed engineering code and
Configuration and the code of described modular engineering and configuration merge, and are packaged into war bag and merge deployment, in order to described modular engineering
It is able to access that the message object of the transaction of application assembly.
In certain embodiments of the present invention, described pretreatment module is to described public method engineering, described module work
Journey and described packing are disposed engineering and are carried out configuration and include: to the database access file of the public sheet of described public method engineering,
Error code in common code is mapped to error description and configures;Described packing is disposed data source and the day of the association of engineering
Will configures;Error code in the data access file of contingency table of described modular engineering, affiliated application assembly is mapped to
The transaction code that error description, online message mapping relations, affiliated application assembly provide with service the mapping relations of class and described
Data source and the daily record of modular engineering association configure.
In certain embodiments of the present invention, described device also includes: cross-module calling interface, and this interface is for hand over
Easily the incoming message object of code and called transaction is that input parameter determination is called the outgoing message object of transaction.
In certain embodiments of the present invention, described interface with the incoming message object of transaction code and called transaction is
Input parameter determination be called transaction outgoing message object include: preserve current transaction code and current trading environment variable, structure
Build the described transaction code trading environment variable corresponding with described transaction code as new trading environment, in described new trading environment
In from local service LOGIN directory, inquire about the service class that described transaction code is corresponding, by the incoming message pair of described called transaction
As obtaining outgoing message object as service class described in input parameter call, destroy described new trading environment, recover described and work as
Front transaction code and current trading environment variable, and return described outgoing message object.
In certain embodiments of the present invention, described interface with the incoming message object of transaction code and called transaction is
Input parameter determination be called transaction outgoing message object include: from remote service LOGIN directory, inquire about described transaction code pair
The address information of the server answered;The incoming message object of described called transaction is converted to inputs data message and is sent to institute
State the server that the address information of server is corresponding;Receive the output data message that described server returns, and by described output
Data message is converted to the outgoing message object of described called transaction, and returns described outgoing message object.
In certain embodiments of the present invention, described device also includes: individually deployment module, is used for being periodically generated module
Engineering, and the described modular engineering being periodically generated is packaged into jar bag, wherein, described in the code of modular engineering that is periodically generated
Derive from the interface object of each modular engineering.
What embodiment of the present invention provided applies the method and apparatus called of concluding the business in assembly, is not revising application assembly generation
On the premise of Ma, merge deployment and independent deployment all can make a modular engineering access the on-line transaction of another modular engineering.
Accompanying drawing explanation
Fig. 1 is the flow process signal applying the processing method called of concluding the business in assembly according to one embodiment of the present invention
Figure.
Fig. 2 is the structural representation applying the processing means called of concluding the business in assembly according to one embodiment of the present invention
Figure.
Detailed description of the invention
It is described in detail to various aspects of the present invention below in conjunction with the drawings and specific embodiments.Wherein, many institute's weeks
Module, unit and the connection each other thereof known, link, communicate or operate and be shown without or do not elaborate.Further, institute
The feature, framework or the function that describe can combine in one or more embodiments by any way.People in the art
Member should be appreciated that following various embodiments are served only for illustrating, not for limiting the scope of the invention.Also may be used
With easy to understand, module in each embodiment described herein and shown in the drawings or unit or processing mode can by various not
It is combined with configuration and designs.
The application assembly of embodiment of the present invention can refer to that business function, operation flow, implementation pattern are close, for same
Category traffic product or the set implemented of service.Product service system is by basic technology assembly and application assembly group
Become, can receive/send on-line transaction, the system of process service logic.Transaction usually on-line transaction, it is also possible to be with online
Other transaction that transaction is similar.
Fig. 1 is the flow process signal applying the processing method called of concluding the business in assembly according to one embodiment of the present invention
Figure.
See Fig. 1, the present invention application assembly in conclude the business the processing method called comprise the steps that step S11, step S12 and
Next above three steps are specifically described by step S13.
Step S11, by application assembly code retrain according to predetermined engineering structure, for example, it is possible to will application assembly according to
Predetermined engineering structure carries out code development.Wherein, predetermined engineering structure includes: public method engineering needed for each application assembly,
Engineering, wherein, the message object base of public method engineering definition transaction are disposed in modular engineering and packing in each application assembly
Class, modular engineering includes the message object of transaction and depends on public method engineering.Public method engineering can use XXX-
COMMON form is named, and belongs to java engineering, and wherein, XXX is the title of application assembly, and XXX-COMMON is entitled
Public method required for the application assembly of XXX;Modular engineering can be named to use XXX-PROD-YY form, belongs to web
Engineering, wherein, XXX is the title of application assembly, and YY is the module of segmentation, and XXX-PROD-YY is the application assembly of entitled XXX
The modular engineering of interior segmentation;Packing is disposed engineering and can be named to use XXX-DEPLOY form, belongs to java engineering, its
In, XXX is the title of application assembly, and XXX-DEPLOY disposes engineering for packing, defines common profiles.
In a kind of specific embodiment, predetermined engineering structure can be such as table 1 below.
Table 1
Message object base class defined in XXX-COMMON engineering, including incoming message object base class BaseInVo and output
Message object base class BaseOutVo;XXX-PROD-YY engineering has on-line transaction service interrelated logic and configuration file, relies on
Bag vo (referring to interface object) is had to place message object specially in XXX-COMMON engineering, XXX-PROD-YY engineering
InVo and OutVo, namely the input value intersection object of a transaction, output valve intersection object.Each PROD engineering can be made
Individually dispose for web project.COMMON engineering and PROD engineering all use Spring framework as bean registration acquisition instrument and
Transaction management instrument, using the teaching of the invention it is possible to provide unified object container, contributes to realizing single example, manages object;Facilitate interface-oriented programming;
Support JDBC and integrated ORM framework etc..Spring provides statement formula transaction management mechanism based on aop so that application generation
Need not in Ma explicitly call the unlatching operation such as affairs, submission/rollback affairs, reduce risk of error etc..It should be noted that
In other embodiment, COMMON engineering and PROD engineering can not use Spring framework, but use other
Mode.
Step S12, disposes engineering to the public method engineering developed, modular engineering and packing and configures.Concrete and
Speech, it may include: to the mistake in the database access file of public sheet of public method engineering of each application assembly, common code
Code is mapped to error description and configures;Data source and the daily record of the association of deployment engineering of packing application assembly are joined
Put;To the mistake applied belonging to the data access file of contingency table of each application assembly middle mold block engineering, this modular engineering in assembly
Error code is mapped to transaction code and the service that application assembly belonging to error description, online message mapping relations, this modular engineering provides
The mapping relations of class and the data source of described modular engineering association and daily record configure.It is pointed out that above-mentioned public affairs
The configuration of methods engineering, packing allocation project and modular engineering is not limited in the above-mentioned configuration listed altogether, may also include other
Configuration.
In a kind of specific embodiment, the configuration to public method engineering can include the literary composition of the database access to public sheet
Part carries out configuring (such as, the sql-map file of ibatis, sql-map-config file) and relating in common code
Error code be mapped to error description and configure;The configuration that can include being combined deployment to the configuration disposing engineering of packing, example
As, data source, the configuration of daily record to association, so that this engineering can independent operating;Configuration to modular engineering can be right
The on-line transaction service registry configuration of modular engineering, including: the data base of the contingency table of the application assembly belonging to this modular engineering
Access application belonging to file configuration (such as, the sql-map file of ibatis, sql-map-config file), this modular engineering
Error code in assembly is mapped to the configuration of error description, and the configuration of online message mapping relations (message-> inVo, outVo-> report
Literary composition), the mapping relations of transaction code-> service class that the application assembly belonging to this modular engineering provides, the configuration that also engineering is relevant
As data source configuration, daily record configuration etc. make this modular engineering can be with independent operating.
Step S13, disposes the code of engineering and configuration and described by the code of public method engineering and configuration, described packing
The code of modular engineering and configuration merge, and are packaged into war bag and merge deployment, in order to described modular engineering is able to access that answers
With the message object of the transaction of assembly.Specifically, merge dispose time, by all codes of XXX-COMMON and configuration,
All codes of XXX-DEPLOY and configuration, the code of each XXX-PROD-YY engineering and on-line transaction service registry configuration are closed
And, and breaking into a war bag deployment, the most each PROD engineering can also have access to apply each the message concluded the business in assembly
Object.DEPLOY engineering places public configuration file due to main, and in some cases, DEPLOY engineering and PROD engineering can
Can have conflict, such as, title is the same, and this is owing to PROD engineering has the title of some configuration files for individually disposing
As the title of the common profiles in DEPLOY engineering.It that case, with the common configuration of DEPLOY engineering
The title of file is as the criterion.
Described above is and merge the situation disposed, the method called of concluding the business in the application assembly of the present invention is except including merging
Outside the situation disposed, may also include the situation of individually deployment, when individually disposing, the method for the present invention also can be wrapped
Include: be periodically generated modular engineering, and the modular engineering being periodically generated is packaged into jar bag, wherein, the modular engineering being periodically generated
Code derive from the interface object of each modular engineering, namely the input value intersection object of a transaction, output valve intersection
Object.In a kind of specific embodiment, when in the development phase and individually disposing, it is periodically generated the engineering of XXX-PROD-VO also
Breaking into jar bag, the code of this engineering derives from VO (interface object, the input value intersection pair of a transaction of each PROD engineering
As, output valve intersection object), this VO engineering compiling jar out is coated each PROD engineering and relies on.So, each PROD
Engineering can have access to each the message object concluded the business in this application assembly.By the way can this module accesses its
The message object of his module.The method of the present invention may also include offer cross-module calling interface, it is possible to this module accesses other
The on-line transaction service of module.Cross-module calling interface uses the incoming message object of transaction code and called transaction as input
Parameter, using the outgoing message object of called transaction as output parameter, say, that according to transaction code and the transaction that is called
Incoming message object determines the outgoing message object of called transaction.Such as, in a kind of specific embodiment, cross-module calling connects
Mouth can be to use following form:
BaseOutVo invoke(String serviceId,BaseInVo remoteInVo)
Wherein, input parameter is transaction code serviceid and the incoming message object base class of character string string form
BaseInVo, output parameter is outgoing message object base class BaseOutVo.
The cross-module calling interface of the present invention has two to realize class, is that this locality is called and realized class and far call and realize respectively
Class.
Realization is called for this locality, by with the incoming message object of transaction code and called transaction be input parameter across
Module interface determines that the outgoing message object of called transaction includes: preserve current transaction code and current trading environment variable
(it is, for example possible to use the exchange area of thread-level that threadlocal mechanism creates, some placing current system wherein are joined
Put, such as business date, whether public business, whether be in state at end day etc.)) and the message object etc. of current transaction, build
Whether the transaction code trading environment variable corresponding with this transaction code in input parameter (date of such as, doing business, public business, is
No it is in the environmental variables such as state at end day) as new trading environment, from local service LOGIN directory in new trading environment
(such as, it may include K-> the V mapping relations etc. of transaction code-> service class beanid) inquires about the service that described transaction code is corresponding
Class, obtains outgoing message object using the incoming message object of described called transaction as service class described in input parameter call,
Destroy described new trading environment, recover described current transaction code and current trading environment variable, and return described outgoing message
Object.
In a kind of specific embodiment, this locality is called realization and can be comprised the steps: to preserve former transaction scene, example
As, use the exchange area of the thread-level of threadlocal mechanism establishment, this exchange area is placed current transaction code, currently hands over
Easy environmental variable and the message object etc. of current transaction;Construct new trading environment, such as, use input transaction code and
The new environmental variable etc. that this transaction code is corresponding;The service class that new transaction code is corresponding is inquired about from local service LOGIN directory,
Call this service class, incoming incoming message object;Obtain outgoing message object, destroy the trading environment of New Transaction;Recover former friendship
The most on-the-spot, such as, recover current transaction code, the environmental variable of current transaction and the message pair of current transaction placed in exchange area
As etc.;Return outgoing message object.
Far call is realized, by with the incoming message object of transaction code and called transaction be input parameter across
Module interface determines that the outgoing message object of called transaction includes: from remote service LOGIN directory (such as, it may include transaction
The K-of code-> server ip > V mapping relations) middle address information (such as, the server inquiring about server corresponding to described transaction code
ip);The incoming message object of described called transaction is converted to inputs data message and is sent to the address letter of described server
The server that breath is corresponding, far-end server has the mapping relations of transaction code and service class beanid, is receiving input datagram
After literary composition, input data message is converted into message object InVo, calls the service class that given transaction is corresponding, generate outgoing message
Object OutVo, is reconverted into output data message;Receive the output data message that described server returns, and by described output
Data message is converted to the outgoing message object of described called transaction, and returns described outgoing message object.
In a kind of specific embodiment, far call realizes comprising the steps that inquiry transaction from remote service LOGIN directory
The server id that code (i.e. one of input parameter of interface: transaction code) is corresponding;By (the i.e. input of interface of local input message object
One of parameter: the incoming message object of called transaction) it is converted into input data message, send according to the server id inquired
To the server specified, input data message is converted into message object InVo by this given server, calls given transaction object
Service class, generate OutVo, reconvert become return output data message.
Merge dispose time, this locality can be called and realize class and be registered in spring container, id is a fixing id;
When individually disposing, far call can be realized class and be registered in spring container, id and the fixing id phase merged when disposing
With;When application code to call other modules, the unified javabean calling interface method injecting this fixing id.So
Same set of application code, no matter under merging deployment mode or independent deployment mode, can have access to the friendship of other modules
Easily.
The method called of concluding the business in the application assembly of the present invention is described, below in conjunction with tool above in conjunction with specific embodiment
Body embodiment describes the device corresponding with said method.
Fig. 2 is the structural representation applying the processing means called of concluding the business in assembly according to one embodiment of the present invention
Figure.
Seeing Fig. 2, the processing means called of concluding the business in the application assembly of the present invention can include pretreatment module 21 and merge
Module 22.
Pretreatment module 21 can be used for retraining the code of application assembly according to predetermined engineering structure, for example, it is possible to should
Carrying out code development with assembly according to predetermined engineering structure, wherein, predetermined engineering structure includes: public needed for each application assembly
Engineering, wherein, the report of public method engineering definition transaction are disposed in modular engineering and packing in methods engineering, each application assembly
Literary composition object base class, modular engineering includes the message object of transaction and depends on public method engineering.Public method engineering is permissible
Using XXX-COMMON form to be named, belong to java engineering, wherein, XXX is the title of application assembly, and XXX-COMMON is
Public method required for the application assembly of entitled XXX;Modular engineering can be named to use XXX-PROD-YY form,
Belonging to web project, wherein, XXX is the title of application assembly, and YY is the module of segmentation, and XXX-PROD-YY is entitled XXX's
The modular engineering of segmentation in application assembly;Packing is disposed engineering and can be named to use XXX-DEPLOY form, belongs to java
Engineering, wherein, XXX is the title of application assembly, and XXX-DEPLOY disposes engineering for packing, defines common profiles.One
Planting in specific embodiment, predetermined engineering structure can be such as table 1.
Pretreatment module 21 can be additionally used in and carries out the public method engineering developed, modular engineering and packing deployment engineering
Configuration.Specifically, it may include: to the database access file of the public sheet of the public method engineering of each application assembly, public
Error code in code is mapped to error description and configures;To application assembly pack dispose engineering association data source with
Daily record configures;Apply belonging to the data access file of contingency table of each application assembly middle mold block engineering, this modular engineering
Error code in assembly is mapped to the friendship that application assembly belonging to error description, online message mapping relations, this modular engineering provides
Data source and daily record that easily code associates with mapping relations and the described modular engineering of service class configure.It may be noted that
It is that the configuration of above-mentioned public method engineering, packing allocation project and modular engineering is not limited in the above-mentioned configuration listed, also
Other configuration can be included.
In a kind of specific embodiment, the configuration to public method engineering can include the literary composition of the database access to public sheet
Part carries out configuring (such as, the sql-map file of ibatis, sql-map-config file) and relating in common code
Error code be mapped to error description and configure;The configuration that can include being combined deployment to the configuration disposing engineering of packing, example
As, data source, the configuration of daily record to association, so that this engineering can independent operating;Configuration to modular engineering can be right
The on-line transaction service registry configuration of modular engineering, including: the data base of the contingency table of the application assembly belonging to this modular engineering
Access application belonging to file configuration (such as, the sql-map file of ibatis, sql-map-config file), this modular engineering
Error code in assembly is mapped to the configuration of error description, and the configuration of online message mapping relations (message-> inVo, outVo-> report
Literary composition), the mapping relations of transaction code-> service class that the application assembly belonging to this modular engineering provides, the configuration that also engineering is relevant
As data source configuration, daily record configuration etc. make this modular engineering can be with independent operating.
Merge module 22 and the code of public method engineering and configuration, described packing are disposed the code of engineering and configuration and institute
Code and the configuration of stating modular engineering merge, and are packaged into war bag and merge deployment, in order to described modular engineering is able to access that
The message object of the transaction of application assembly.Specifically, merge dispose time, by all codes of XXX-COMMON and configuration,
All codes of XXX-DEPLOY and configuration, the code of each XXX-PROD-YY engineering and on-line transaction service registry configuration are closed
And, and breaking into a war bag deployment, the most each PROD engineering can also have access to apply each the message concluded the business in assembly
Object.DEPLOY engineering places public configuration file due to main, and in some cases, DEPLOY engineering and PROD engineering can
Can have conflict, such as, title is the same, and this is owing to PROD engineering has the title of some configuration files for individually disposing
As the title of the common profiles in DEPLOY engineering.It that case, with the common configuration of DEPLOY engineering
The title of file is as the criterion.
Described above is and merge the situation disposed, the method called of concluding the business in the application assembly of the present invention is except including merging
Outside the situation disposed, may also include the situation of individually deployment, when individually disposing, assembly of the invention also can be wrapped
Including: individually deployment module, it is periodically generated modular engineering, and the modular engineering being periodically generated is packaged into jar bag, wherein, fixed
The code of the modular engineering that the phase generates derives from the interface object of each modular engineering, namely the input value intersection of a transaction
Object, output valve intersection object.In a kind of specific embodiment, when in the development phase and individually disposing, it is periodically generated XXX-
The engineering of PROD-VO also breaks into jar bag, and the code of this engineering derives from VO (interface object, a transaction of each PROD engineering
Input value intersection object, output valve intersection object), this VO engineering compiling jar out be coated each PROD engineering rely on.
So, the message object of each transaction in each PROD engineering can have access to this application assembly.
By the way can be at the message object of other modules of this module accesses.Assembly of the invention may also include across
Module calling interface, it is possible in the on-line transaction service of other modules of this module accesses.Cross-module calling interface uses transaction code
With the incoming message object of called transaction as input parameter, using the outgoing message object of called transaction as output ginseng
Number, say, that determine the outgoing message object of called transaction according to the incoming message object of transaction code and called transaction.
The cross-module calling interface of the present invention has two to realize class, is that this locality is called and realized class and far call and realize respectively
Class.
Realization is called for this locality, by with the incoming message object of transaction code and called transaction be input parameter across
Module interface determines that the outgoing message object of called transaction includes: preserve current transaction code and current trading environment variable
(it is, for example possible to use the exchange area of thread-level that threadlocal mechanism creates, some placing current system wherein are joined
Put, such as business date, whether public business, whether be in state at end day etc.)) and the message object etc. of current transaction, build
Whether the transaction code trading environment variable corresponding with this transaction code in input parameter (date of such as, doing business, public business, is
No it is in the environmental variables such as state at end day) as new trading environment, from local service LOGIN directory in new trading environment
(such as, it may include K-> the V mapping relations etc. of transaction code-> service class beanid) inquires about the service that described transaction code is corresponding
Class, obtains outgoing message object using the incoming message object of described called transaction as service class described in input parameter call,
Destroy described new trading environment, recover described current transaction code and current trading environment variable, and return described outgoing message
Object.
Far call is realized, by with the incoming message object of transaction code and called transaction be input parameter across
Module interface determines that the outgoing message object of called transaction includes: from remote service LOGIN directory (such as, it may include transaction
The K-of code-> server ip > V mapping relations) middle address information (such as, the server inquiring about server corresponding to described transaction code
ip);The incoming message object of described called transaction is converted to inputs data message and is sent to the address letter of described server
The server that breath is corresponding, far-end server has the mapping relations of transaction code and service class beanid, is receiving input datagram
After literary composition, input data message is converted into message object InVo, calls the service class that given transaction is corresponding, generate outgoing message
Object OutVo, is reconverted into output data message;Receive the output data message that described server returns, and by described output
Data message is converted to the outgoing message object of described called transaction, and returns described outgoing message object.
Merge dispose time, this locality can be called and realize class and be registered in spring container, id is a fixing id;
When independent deployment, far call can be realized class and be registered in spring container, id and the fixing id phase merged when disposing
With;When application code to call other modules, the unified javabean calling interface method injecting this fixing id.The most same
Set application code, no matter under merging deployment mode or independent deployment mode, can have access to the transaction of other modules.
Through the above description of the embodiments, those skilled in the art is it can be understood that can be by the present invention
The mode of software combined with hardware platform realizes.Based on such understanding, background technology is made tribute by technical scheme
That offers can embody with the form of software product in whole or in part, and this computer software product can be stored in storage and be situated between
In matter, such as ROM/RAM, magnetic disc, CD etc., instruct with so that a computer equipment (can be individual calculus including some
Machine, server, smart mobile phone or the network equipment etc.) perform described in some part of each embodiment of the present invention or embodiment
Method.
The term used in description of the invention and wording, just to illustrating, are not intended to constitute restriction.Ability
Field technique personnel should be appreciated that on the premise of the ultimate principle without departing from disclosed embodiment, to above-mentioned embodiment
In each details can carry out various change.Therefore, the scope of the present invention is only determined by claim, in the claims, unless
Being otherwise noted, all of term should be understood by the broadest rational meaning.
Claims (12)
1. apply the processing method called of concluding the business in assembly for one kind, it is characterised in that described method includes:
Being retrained according to predetermined engineering structure by the code of application assembly, wherein, described predetermined engineering structure includes: respectively apply assembly
Engineering is disposed in modular engineering and packing in required public method engineering, each application assembly, and described public method engineering is fixed
The message object base class of justice transaction, described modular engineering includes the message object of transaction and depends on described public method work
Journey;
Described public method engineering, described modular engineering and described packing are disposed engineering configure;
The code of described public method engineering and configuration, described packing are disposed the code of engineering and configuration and described modular engineering
Code and configuration merge, and be packaged into war bag and merge deployment, in order to described modular engineering is able to access that applies assembly
The message object of transaction.
Method the most according to claim 1, it is characterised in that described to described public method engineering, described modular engineering
Carry out configuration with described packing deployment engineering to include:
Error code in the database access file of public sheet of described public method engineering, common code is mapped to mistake retouch
State and configure;
Data source and daily record that described packing is disposed the association of engineering configure;
Error code in the data access file of contingency table of described modular engineering, affiliated application assembly is mapped to mistake retouch
State, transaction code and the service mapping relations of class and described module work that online message mapping relations, affiliated application assembly provide
Data source and the daily record of Cheng Guanlian configure.
Method the most according to claim 1, it is characterised in that described method also includes:
By determining, with the cross-module interface that the incoming message object of transaction code and called transaction is input parameter, the friendship that is called
Easy outgoing message object.
Method the most according to claim 3, it is characterised in that by with transaction code and the incoming message pair of called transaction
As determining that for the cross-module interface of input parameter the outgoing message object of called transaction includes:
Preserve current transaction code and current trading environment variable, build the trading environment that described transaction code is corresponding with described transaction code
Variable as new trading environment,
From local service LOGIN directory, the service class that described transaction code is corresponding is inquired about, by described in described new trading environment
The incoming message object of called transaction obtains outgoing message object as service class described in input parameter call,
Destroy described new trading environment, recover described current transaction code and current trading environment variable, and return described output
Message object.
Method the most according to claim 3, it is characterised in that by with transaction code and the incoming message pair of called transaction
As determining that for the cross-module interface of input parameter the outgoing message object of called transaction includes:
The address information of server corresponding to described transaction code is inquired about from remote service LOGIN directory,
The incoming message object of described called transaction is converted to inputs data message and is sent to the address letter of described server
The server that breath is corresponding,
Receive the output data message that described server returns, and described output data message is converted to described called transaction
Outgoing message object, and return described outgoing message object.
Method the most according to claim 1, it is characterised in that described method also includes:
Be periodically generated modular engineering, and the described modular engineering being periodically generated be packaged into jar bag, wherein, described in be periodically generated
The code of modular engineering derive from the interface object of each modular engineering.
7. apply the processing means called of concluding the business in assembly for one kind, it is characterised in that described device includes:
Pretreatment module, for the code of application assembly is retrained according to predetermined engineering structure, wherein, described predetermined engineering structure
Including: engineering is disposed in the public method engineering needed for each application assembly, the modular engineering in each application assembly and packing, described
The message object base class of public method engineering definition transaction, described modular engineering includes the message object of transaction and depends on institute
State public method engineering;And, engineering is disposed in described public method engineering, described modular engineering and described packing and joins
Put;
Merge module, the code of described public method engineering and configuration, described packing are disposed the code of engineering and configuration and institute
Code and the configuration of stating modular engineering merge, and are packaged into war bag and merge deployment, in order to described modular engineering is able to access that
The message object of the transaction of application assembly.
Device the most according to claim 7, it is characterised in that described pretreatment module is to described public method engineering, institute
State modular engineering and described packing deployment engineering carry out configuration and includes:
Error code in the database access file of public sheet of described public method engineering, common code is mapped to mistake retouch
State and configure;
Data source and daily record that described packing is disposed the association of engineering configure;
Error code in the data access file of contingency table of described modular engineering, affiliated application assembly is mapped to mistake retouch
State, transaction code and the service mapping relations of class and described module work that online message mapping relations, affiliated application assembly provide
Data source and the daily record of Cheng Guanlian configure.
Device the most according to claim 7, it is characterised in that described device also includes: cross-module calling interface, this interface
Outgoing message object for the transaction that is called with the incoming message object of transaction code and called transaction for input parameter determination.
Device the most according to claim 9, it is characterised in that described interface is with transaction code and the input of called transaction
Message object be input parameter determination be called transaction outgoing message object include:
Preserve current transaction code and current trading environment variable, build the trading environment that described transaction code is corresponding with described transaction code
Variable as new trading environment,
From local service LOGIN directory, the service class that described transaction code is corresponding is inquired about, by described in described new trading environment
The incoming message object of called transaction obtains outgoing message object as service class described in input parameter call,
Destroy described new trading environment, recover described current transaction code and current trading environment variable, and return described output
Message object.
11. devices according to claim 9, it is characterised in that described interface is with transaction code and the input of called transaction
Message object be input parameter determination be called transaction outgoing message object include:
The address information of server corresponding to described transaction code is inquired about from remote service LOGIN directory,
The incoming message object of described called transaction is converted to inputs data message and is sent to the address letter of described server
The server that breath is corresponding,
Receive the output data message that described server returns, and described output data message is converted to described called transaction
Outgoing message object, and return described outgoing message object.
12. devices according to claim 7, it is characterised in that described device also includes:
Individually deployment module, is used for being periodically generated modular engineering, and the described modular engineering being periodically generated is packaged into jar bag,
Wherein, the code of the modular engineering being periodically generated described in derives from the interface object of each modular engineering.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610395737.7A CN106095424B (en) | 2016-06-07 | 2016-06-07 | The treating method and apparatus for calling of trading in application component |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610395737.7A CN106095424B (en) | 2016-06-07 | 2016-06-07 | The treating method and apparatus for calling of trading in application component |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106095424A true CN106095424A (en) | 2016-11-09 |
CN106095424B CN106095424B (en) | 2019-05-24 |
Family
ID=57447664
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610395737.7A Active CN106095424B (en) | 2016-06-07 | 2016-06-07 | The treating method and apparatus for calling of trading in application component |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106095424B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109147230A (en) * | 2018-08-07 | 2019-01-04 | 中国建设银行股份有限公司 | A kind of operating method and device of the financial self-service equipment based on WOSA |
CN110378790A (en) * | 2019-07-19 | 2019-10-25 | 中国银行股份有限公司 | Transaction data call method and system |
CN111949337A (en) * | 2020-08-07 | 2020-11-17 | 中国建设银行股份有限公司 | Accounting processing method, device, terminal and storage medium |
CN114741434A (en) * | 2022-06-10 | 2022-07-12 | 北京亿赛通科技发展有限责任公司 | Pre-statistics method and system for massive ES search data |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100161767A1 (en) * | 2003-10-02 | 2010-06-24 | Research In Motion Limited | System and method for flexible application hosting on a wireless device |
CN102033741A (en) * | 2009-09-30 | 2011-04-27 | 华为技术有限公司 | North interface system and realization method thereof |
CN102289774A (en) * | 2011-09-13 | 2011-12-21 | 上海普元信息技术股份有限公司 | Graphical message processing and test system and method in financial transaction processing system |
CN102572596A (en) * | 2010-12-17 | 2012-07-11 | 北京国微集成技术有限公司 | Management method of application assemblies and multi-media device |
-
2016
- 2016-06-07 CN CN201610395737.7A patent/CN106095424B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100161767A1 (en) * | 2003-10-02 | 2010-06-24 | Research In Motion Limited | System and method for flexible application hosting on a wireless device |
CN102033741A (en) * | 2009-09-30 | 2011-04-27 | 华为技术有限公司 | North interface system and realization method thereof |
CN102572596A (en) * | 2010-12-17 | 2012-07-11 | 北京国微集成技术有限公司 | Management method of application assemblies and multi-media device |
CN102289774A (en) * | 2011-09-13 | 2011-12-21 | 上海普元信息技术股份有限公司 | Graphical message processing and test system and method in financial transaction processing system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109147230A (en) * | 2018-08-07 | 2019-01-04 | 中国建设银行股份有限公司 | A kind of operating method and device of the financial self-service equipment based on WOSA |
CN110378790A (en) * | 2019-07-19 | 2019-10-25 | 中国银行股份有限公司 | Transaction data call method and system |
CN111949337A (en) * | 2020-08-07 | 2020-11-17 | 中国建设银行股份有限公司 | Accounting processing method, device, terminal and storage medium |
CN111949337B (en) * | 2020-08-07 | 2023-11-07 | 中国建设银行股份有限公司 | Accounting processing method, device, terminal and storage medium |
CN114741434A (en) * | 2022-06-10 | 2022-07-12 | 北京亿赛通科技发展有限责任公司 | Pre-statistics method and system for massive ES search data |
Also Published As
Publication number | Publication date |
---|---|
CN106095424B (en) | 2019-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Hagen et al. | Impacts of mobile agent technology on mobile communication system evolution | |
CN106095424A (en) | Apply the treating method and apparatus called of concluding the business in assembly | |
CN100421435C (en) | Gateway for next-generation network, dynamic extending, and open interface technology | |
GB9726086D0 (en) | Agent enabling technology | |
MXPA03006243A (en) | Deployment of configuration information. | |
CN102752204A (en) | Service platform and service realization method of ubiquitous network | |
CN108255614A (en) | A kind of interface calling system and method based on micro services framework | |
CN105183452A (en) | Spring AOP based remote protocol service middleware for monitoring power distribution device | |
CN113626128B (en) | Audio-visual media micro-service third-party module access method, system and electronic equipment | |
Kapuruge et al. | ROAD4WS--Extending Apache Axis2 for Adaptive Service Compositions | |
CN107145353A (en) | Software frame and Design of Software Framework method | |
Niemela et al. | Toward an architectural knowledge base for wireless service engineering | |
Kristan et al. | Evolving the ecosystem: Eclipse arrowhead integrates eclipse iot | |
CN101938510A (en) | SIP servlet applications co-hosting | |
AU2003223040A1 (en) | Exchange infrastructure system and method | |
Vale et al. | Model driven development of context-aware service oriented architecture | |
Däcker | Concurrent functional programming for telecommunications: A case study of technology introduction | |
CN100407728C (en) | Board to board communication between distribution system objects | |
Halpern | Standards collisions around SDN. | |
Estublier et al. | Designing and building software federations | |
CN113726603A (en) | Full link performance monitoring algorithm based on micro-service architecture | |
Hafner et al. | Realizing model driven security for inter-organizational workflows with WS-CDL and UML 2.0: Bringing Web services, security and UML together | |
CN106951538B (en) | The automatic abstracting method and system of information resources | |
Berger et al. | Towards an agent-based infrastructure for distributed virtual organizations | |
Elgedawy | Automatic generation for web services conversations adapters |
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 |