CN1306366C - Implement method of assembly adapter - Google Patents
Implement method of assembly adapter Download PDFInfo
- Publication number
- CN1306366C CN1306366C CNB031459803A CN03145980A CN1306366C CN 1306366 C CN1306366 C CN 1306366C CN B031459803 A CNB031459803 A CN B031459803A CN 03145980 A CN03145980 A CN 03145980A CN 1306366 C CN1306366 C CN 1306366C
- Authority
- CN
- China
- Prior art keywords
- component
- adapter
- engine
- interface
- operation service
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a realization method for a component adapter, which is used for realizing a component adapter capable of shielding morphological difference and individual difference of distributed deployment components. The component adapter is provided with a component interface coherence adapter of an upper layer and at least one specific component service interface of a lower layer, wherein the component interface coherence adapter carries out data interchange with an operation service engine and a dispatch engine which are tightly coupled. The operation service engine triggers component services so as to transfer the component services to operation instructions of the component interface coherence adapter, and the dispatch engine finds out component information which the operation service engine needs to use in an operation service knowledge base; the component interface coherence adapter analyzes the instructions of the operation service engines so as to determine which kinds of components need to be adapted; parameter information of the component services is obtained from the dispatch engine, and is transferred to at least one specific component service interface of a lower layer so as to invoke the component services which the operation service engine needs by the parameter information.
Description
Technical field
The present invention relates to a kind of implementation method that solves the component adapter of the adaptive problem of various Component service under the distributed objects environment, the component server that utilizes this method to realize can shield morphological differences and the individual difference of assembly such as COM, CORBA, the EJB etc. of distributed deployment.This technology belongs to the middleware Technology field in the computer technology.
Background technology
In catenet systems such as telecommunication service network, financial business net and e-government Intranet, distributed object technology has obtained use more and more widely.The existing distributed object technology mainly contains three major sects---the EJB of the COBRA of OMG, the COM/DCOM of Microsoft and SUN.These distributed object technologies in use all exist interdepartmental system and cross-border two basic problems.So-called interdepartmental system is meant that a plurality of operation service engines can provide service on different system platforms; So-called cross-border, be meant that operation service engine can provide service in different professional autonomous territories.
For above-mentioned reasons, support that the Component service deployment scenario of operation service engine is very complicated.These services may exist with various ways such as COM, CORBA, EJB, Servlet, Web Service, they can be same autonomous territory interior span system deployment, also can be cross-border deployment, because many engines cooperation platform needs Component service as much as possible to expand its function.Operation service engine needs to trigger at once the service of assembly after the mapping of the target action in the source of finishing, consider that from the design specifications angle operation service engine need trigger the service of assembly with a kind of uniform way.This mode is just provided by our said component adapter.
The mainstream supplier of adapter class product has companies such as TIBCO and IBM in the market.The adapter product form can be divided into two classes, and a class is the adapter (Information BusAdapter) of bus, and a class is that adapter (Business Integration BrokerAdapter) is acted on behalf of in business integration.
The adapter of TIBCO company is based on the adapter of bus, and its major function is the message exchange of supporting between distributed system, shares the bus that TIBCO provides as patented technology.The adapter that TIBCO provides has reached 60 kinds, comprises polytypes such as application adapter, network technology adapter, database adapter and customized application adapter.Their support that application data is mutual, the network distribution type system information is mutual, the information interaction of database data synchronous interaction and customized application system, integrated, share multiple function such as bus platform.
The WebSphere business integration adapter of IBM Corporation is typical case's representative that adapter is acted on behalf of in business integration.Business procedures in actual moving process such as this class adapter network enabled distribution application system, Database Systems, network management system are integrated, and by masterplate and adapter are provided, the business integration of the application product of different vendor is striden in support.The technology that it is supported comprises JMS, Email, XML, Jtext, JDBC and SWIFT 1.0.
But still there are many weak points in above-mentioned adapter.They still are a bus platform or business integration agency in itself, and what mainly solve is the Component service of distributed deployment such as the morphological differences of COM, CORBA, EJB etc.In concrete Component service visit, the difference of said modules individuality still can embody to some extent.In addition, above-mentioned adapter can not be realized unified user's development interface.
Summary of the invention
The object of the present invention is to provide a kind of implementation method of new component adapter.The component adapter of realizing by this method can make the operation service engine on upper strata when needs are finished certain operation, need neither to know which kind of assembly the assembly that will use belongs to, which kind of parameter the assembly that does not need again to know use specifically needs, uses which kind of interface.The information that all these are necessary is all obtained by information bus by component adapter, makes this component adapter self just can finish integration to professional and data.
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A kind of implementation method of component adapter, be used to realize to shield the component adapter of the morphological differences and the individual difference of distributed deployment assembly, this component adapter has the component interface consistance adapter on upper strata and the concrete Component service interface of at least one lower floor, wherein component interface consistance adapter and tightly coupled operation service engine and scheduling engine carry out exchanges data, and this method comprises the steps:
Described operation service engine triggers after the Component service, pass to described component interface consistance adapter operational order, described scheduling engine detects the information of the assembly that operation service engine will use in the operate services knowledge base, described component interface consistance adapter is analyzed the instruction of described operation service engine, which kind of need to determine after the adaptive assembly, the parameter information of securing component service from scheduling engine, again parameter information is passed at least one concrete Component service interface of lower floor, call the Component service that described operation service engine needs by them.
Compare with the existing adapters product, the component adapter that the inventive method realizes has following characteristics:
1. this component adapter compiles the assembly that distributes and exist, and is supported in and makes up service application in the same system.It supports consistent user's development interface, has shielded the morphological differences of the assembly of distributed deployment.
2. this component adapter is clustered to a business unit data acquisition to the attribute of a plurality of assemblies, thereby has shielded individual difference in the Component service visit.
Description of drawings
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Fig. 1 is the position view of component adapter in a kind of many engines cooperation platform embodiment.
Fig. 2 is the composition structural representation of component adapter.
Fig. 3 is the operating mechanism synoptic diagram of component adapter.
Fig. 4 is the data structure synoptic diagram of necessary and sufficient condition knowledge base in the operate services knowledge base.
Fig. 5 is the data structure synoptic diagram of component description knowledge base in the operate services knowledge base.
Fig. 6 is the data structure synoptic diagram of parametric description knowledge base in the operate services knowledge base.
Fig. 7 describes the data structure synoptic diagram of knowledge base for mapping ruler in the operate services knowledge base.
Fig. 8 is the workflow diagram of component adapter.
Embodiment
The realization environment of this component adapter is such: at hardware aspect, the CPU that only needs computing machine is that internal memory gets final product greater than 256,000,000 more than the PIII; Then need to support the operating system of Java Virtual Machine aspect software, Java Virtual Machine should be J2SDK 1.3.0 or above version, and the Servlet container of supporting Servlet2.2 and above version also will be arranged in addition.
Shown in Figure 1 is the position view of this component adapter in a kind of many engines cooperation platform embodiment.The structure of this many engines cooperation platform is exemplary.In different concrete applied environments, its concrete composition can change to some extent, but its basic structure is constant, the top that is it is concrete service application target, lowermost end is the knowledge base of information stores support platform and as the J2EE application server of public service platform, center section is scheduling engine and various operation service engine, and the contact method between them is the distributed component pattern.Information bus and component adapter play a part data interaction between different systems, scheduling together therein.Here the information bus of being mentioned is in another application for a patent for invention of the inventor---and have in the implementation method of information bus fully and disclose, just do not describe in detail at this.In the present embodiment, used operation service engine comprises the business procedure operation service engine, text type data manipulation service-Engine, the relational data operation service engine, stream medium data operation service engine etc., an operation service engine is to there being a component adapter, the function of this component adapter is exactly the form and the individual difference of this operation service engine lower layer components of shielding, make operation service engine only need import the shirtsleeve operation order code into, component adapter just can be discerned the form of required use assembly automatically, as EJB, COM, CORBA or the like, search and use the required parameter of this assembly, and finish corresponding operation according to the operational order invocation component that operation service engine imports into.The component adapter here is not changeless, and it will produce when operation service engine drops into actual working environment, for this operation service engine of being engaged in real work provides downward interface as a kind of mechanism of component interface; In the time of the operation service engine power cut-off, component adapter no longer is required, and it finishes naturally.
As shown in Figures 2 and 3, this component adapter is divided into the concrete assembly of the component interface consistance adapter on upper strata and lower floor such as EJB, COM, corba interface double-layer structure.Wherein component interface consistance adapter is responsible for receiving the operational order that operation service engine passes over, and obtains the assembly relevant information of this operation of coupling then automatically in information bus according to this operational order.These information are by detecting in the component description knowledge base of scheduling engine in the operate services knowledge base, and put into information bus for use.Scheduling engine detects information from the component description knowledge base process can adopt existing database retrieval technology to realize, has not just given unnecessary details at this.Component interface consistance adapter receive the operational order that operation service engine passes over and the individual information of the assembly that obtained to use after, by using the listed concrete component interface of one deck, call concrete Component service again.
The effect of said modules interface consistance adapter comprises the operational order that reception, parse operation service-Engine import into; The relevant information of securing component from information bus is prepared the necessary parameter of component call; According to module information that is obtained and operational order, call the component interface of adequate types etc.And the various components interface of lower floor is responsible for calling the various components service according to the call parameters and the operational order that import into, finishes various assembly operations.Because the concrete formation of various components interface all is a technique known, do not describe in detail with regard to not adding at this.
In this component adapter, the operate services knowledge base has special important effect: the dispatching sequence of the action of operation service engine and many engine schedulings platform obtains from knowledge base.Operation service engine is based on the work of data structure knowledge base, and its action is described knowledge base by necessary and sufficient condition knowledge base, parametric description knowledge base, component description knowledge base, mapping ruler and determined jointly.Scheduling engine is provided support by working knowledge storehouse and job stream knowledge base to the management of operation task and job stream.Fig. 4 has provided the data structure diagram of necessary and sufficient condition knowledge base.Fig. 5 is the data structure diagram of component description knowledge base, and it comprises contents such as component identification, component address, assembly type, attribute-name, property value.The parametric description knowledge base as shown in Figure 6, it comprises contents such as attribute codes, attribute-name, attribute data type, attribute data codomain, affiliated professional document.Fig. 7 describes the data structure diagram of knowledge base for mapping ruler.
The example in aforesaid operations service knowledge storehouse is exactly the related data that leaves in above-mentioned many engines cooperation platform in the DB2 database.Only it stored be not the service class data, but contents such as the correlation parameter of operation service engine when triggering operation or job stream, verification condition, descriptor.In many engines cooperation platform, information bus all needs to quote wherein relevant data with component adapter, and this invocation procedure is that existing database technology can be supported, has not just given unnecessary details at this.
Because an operation service engine is to there being a component adapter, and the operation that each operation service engine will be finished has nothing in common with each other, for addressing this problem, we transmit the information of the operation that operation service engine will finish by the defining operation order code.The setting of this operational order sign indicating number is such:
At first, the order code initial cap shows the classification of operation service engine, represents with D such as the document services engine; Secondly, the back to back two digits of order code has indicated the work that operation service engine will be finished, and wants a newly-built document to represent with 00 such as the document services engine.The numeral of known operation instruction can inquire about obtaining concrete operation implication in the operate services knowledge base.Like this, when component interface consistance adapter receives the operational code of C00, just can know the operation that to do new document by the information in the operate services knowledge base.
Component interface consistance adapter provides an operation entry to operation service engine, and operation service engine imports the operational order sign indicating number into by this operation entry, the work that on behalf of operation service engine, the operational order sign indicating number will carry out.In the course of the work, if component interface consistance adapter finds that the operational order sign indicating number is wrong, then return error message and give operation service engine, operation service engine imports correct operational order sign indicating number into, calls again.If make mistakes when component interface consistance adapter obtains module information in the information bus, then return error message and give scheduling engine; If the component interface Service Part parameter error of lower floor then returns error message and gives component interface consistance adapter, by component interface consistance adapter Reparametrization.
As shown in Figure 8, the concrete workflow of this component adapter comprises the steps:
1. trigger component interface consistance adapter reading assembly address, identification marking and attribute-name from the assembly Buffer Pool by scheduling engine.
Assembly Buffer Pool described in the above-mentioned steps is to adopt the metadata cache technology to realize that it reads in internal memory in program, thereby need not reading database once more when needs access component relevant information.The metadata cache technology does not describe in detail at this as known technology.
It is corresponding that assembly Buffer Pool and said modules are described knowledge base, and storage comprises the information of component identification, component address, assembly type, attribute-name, property value, and these information can obtain from the technical information of each assembly.
2. scheduling engine mates in the operate services knowledge base according to component address, identification marking and attribute-name, finds out the relevant information that operation service engine will use assembly.If it is it fails to match then return, successful then carry out data sync with the component interface consistance adapter of assigned address.
3. component interface consistance adapter is prepared the corresponding component interface of lower floor according to the type and the sign of dissimilar assemblies, and for example the international norm according to COM, CORBA, EJB is ready to the corresponding interface.The COM international norm is here provided by Microsoft, and the CORBA international norm is provided by the OMG tissue, and they have detailed explanation to this on website separately, just do not given unnecessary details at this.
4. component interface consistance adapter writes attribute-name and property value according to interface standard in the corresponding component interface of lower floor, and carries out read-after-write verify, and verification is errorless then successfully to be returned.
In whole many engines cooperation platform, component adapter plays a role like this:
After move to the mapping of target in the operation service engine source of finishing, will trigger Component service one time, at this moment component adapter begins to play a role.Owing to be tight coupling between operation service engine and the scheduling engine in the information bus, scheduling engine is known after the demand of operation service engine, in the operate services knowledge base, detect the required knowledge of operation service engine, wherein also comprise the relevant information of the assembly that operation service engine will use.
Operation service engine passes to component interface consistance adapter operational order, component interface consistance adapter receives after this operational order, at first this instruction is analyzed, carry out which kind of operation, and by the relevant information of information bus securing component service from scheduling engine, such as parameter, interface, type; According to different types, such as the EJB Component service, the Com Component service passes to the specific Component service interface of lower floor to necessary parameter information, calls specific Component service by them.
By above-mentioned steps, the operation service engine on upper strata needs neither to know which kind of assembly the assembly that will use belongs to when needs are finished certain operation, and which kind of parameter the assembly that does not need again to know use specifically needs, uses which kind of interface.The information that all these are necessary is all obtained by information bus by component interface consistance adapter.Therefore, component adapter self just can be finished the integration to professional and data.
What need statement is that the specific embodiment of the present invention has been done detailed explanation to content of the present invention.For one of ordinary skill in the art, any conspicuous change that it is done without departing from the premise in the spirit of the present invention particularly to the replacement that is equal to of some parts, all constitutes to infringement of patent right of the present invention, with corresponding legal responsibilities.
Claims (9)
1. the implementation method of a component adapter, be used to realize to shield the component adapter of the morphological differences and the individual difference of distributed deployment assembly, this component adapter has the component interface consistance adapter on upper strata and the concrete Component service interface of at least one lower floor, wherein component interface consistance adapter and tightly coupled operation service engine and scheduling engine carry out exchanges data, it is characterized in that: this method comprises the steps:
(1) described operation service engine triggers after the Component service, passes to described component interface consistance adapter operational order;
(2) described scheduling engine is found out the information of the assembly that operation service engine will use in the operate services knowledge base;
(3) described component interface consistance adapter is analyzed the instruction of described operation service engine, need to determine after adaptive which kind of assembly the parameter information of securing component service from scheduling engine;
(4) described component interface consistance adapter passes at least one concrete Component service interface of lower floor to parameter information, calls the Component service that described operation service engine needs by them.
2. the implementation method of component adapter as claimed in claim 1 is characterized in that:
Described concrete Component service interface comprises at least one in EJB, COM, CORBA, the SERVLET component interface.
3. the implementation method of component adapter as claimed in claim 1 is characterized in that:
Described operate services knowledge base has and comprises that data structure knowledge base, necessary and sufficient condition knowledge base, parametric description knowledge base, component description knowledge base, mapping ruler describe the content of knowledge base.
4. the implementation method of component adapter as claimed in claim 1 is characterized in that:
In the described step (2), described component interface consistance adapter reading assembly address, identification marking and attribute-name from the assembly Buffer Pool; The content of the component description knowledge base in the content in the described assembly Buffer Pool and the described operate services knowledge base is corresponding.
5. the implementation method of component adapter as claimed in claim 4 is characterized in that:
Described scheduling engine mates in described operate services knowledge base according to described component address, identification marking and attribute-name, finds out the information that described operation service engine will use assembly.
6. the implementation method of component adapter as claimed in claim 1 is characterized in that:
In the described step (3), the step that described component interface consistance adapter is analyzed the instruction of described operation service engine comprises:
(1) described component interface consistance adapter receives the operational order sign indicating number that described operation service engine sends;
(2) described component interface consistance adapter reads the first position of described operational order sign indicating number, and first position is a capitalization, shows the classification of operation service engine;
(3) described component interface consistance adapter reads back two of described operational order sign indicating number, and this two bits shows the action that described operation service engine will be finished.
7. the implementation method of component adapter as claimed in claim 1 is characterized in that:
If described component interface consistance adapter finds that the operational order sign indicating number is wrong, then return error message and give described operation service engine, operation service engine imports correct operational order sign indicating number again into, calls again.
8. the implementation method of component adapter as claimed in claim 1 is characterized in that:
If make mistakes when described component interface consistance adapter obtains the parameter information of described Component service, then return error message and give described scheduling engine.
9. the implementation method of component adapter as claimed in claim 1 is characterized in that:
If the concrete Component service interface parameters mistake of lower floor is then returned error message and given described component interface consistance adapter, obtain the parameter information of described Component service again by described component interface consistance adapter.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031459803A CN1306366C (en) | 2003-07-18 | 2003-07-18 | Implement method of assembly adapter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031459803A CN1306366C (en) | 2003-07-18 | 2003-07-18 | Implement method of assembly adapter |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1570812A CN1570812A (en) | 2005-01-26 |
CN1306366C true CN1306366C (en) | 2007-03-21 |
Family
ID=34471572
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031459803A Expired - Fee Related CN1306366C (en) | 2003-07-18 | 2003-07-18 | Implement method of assembly adapter |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1306366C (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100365583C (en) * | 2006-08-03 | 2008-01-30 | 华为技术有限公司 | Package realizing method and system |
CN100504773C (en) * | 2007-06-08 | 2009-06-24 | 北京大学 | Loose coupling access method by employing server public service |
US8396929B2 (en) * | 2008-07-02 | 2013-03-12 | Sap Portals Israel Ltd. | Method and apparatus for distributed application context aware transaction processing |
CN101605055B (en) * | 2009-07-01 | 2011-07-13 | 中兴通讯股份有限公司 | Cross-processing unit adapting method, system and device |
CN102811199B (en) * | 2011-05-30 | 2015-10-28 | 深圳市金蝶友商电子商务服务有限公司 | A kind of method for interface adaptation, Apparatus and system |
CN103530097B (en) * | 2012-07-04 | 2018-01-30 | 深圳中兴网信科技有限公司 | The implementation method and device of a kind of component across middleware platform |
CN103391287B (en) * | 2013-07-11 | 2017-03-08 | 合一信息技术(北京)有限公司 | A kind of Streaming Media jettison system and method |
CN105827671A (en) * | 2015-01-04 | 2016-08-03 | 深圳市领耀东方科技股份有限公司 | System platform characterized by distributed use and centralized management and portal server |
CN107526630A (en) * | 2017-07-31 | 2017-12-29 | 杭州安恒信息技术有限公司 | A kind of method for solving Distributed engine communication |
CN109445845B (en) * | 2018-09-10 | 2022-09-30 | 深圳市智美达科技股份有限公司 | Interface calling method and device, computer equipment and storage medium |
CN113254168B (en) * | 2021-06-11 | 2021-10-15 | 北京百度网讯科技有限公司 | Operation method, device, equipment and storage medium of block chain system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6011686A (en) * | 1997-11-04 | 2000-01-04 | Gateway 2000, Inc. | Audio devices for a portable computer |
US20020167543A1 (en) * | 1999-02-01 | 2002-11-14 | Jeffrey A. Smith | User interface method and system for application programs implemented with component architectures |
-
2003
- 2003-07-18 CN CNB031459803A patent/CN1306366C/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6011686A (en) * | 1997-11-04 | 2000-01-04 | Gateway 2000, Inc. | Audio devices for a portable computer |
US20020167543A1 (en) * | 1999-02-01 | 2002-11-14 | Jeffrey A. Smith | User interface method and system for application programs implemented with component architectures |
Also Published As
Publication number | Publication date |
---|---|
CN1570812A (en) | 2005-01-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1306366C (en) | Implement method of assembly adapter | |
US5553303A (en) | Data processing system for dynamically switching access control process and for performing recovery process | |
CN1207669C (en) | Method for distributing application program data into dissimilar format distributed data base and its system | |
US7194475B2 (en) | Method, system, and program for performing an impact analysis of program statements in at least one source code file | |
US7797670B2 (en) | Mirrored file system | |
US7657609B2 (en) | Data transfer in a multi-environment document management system access | |
US20090249315A1 (en) | Object storage and synchronization hooks for occasionally-connected devices | |
US20070156715A1 (en) | Tagged property files for system configurations | |
CN101046821A (en) | Generic database manipulator | |
Gómez et al. | Map-based transparent persistence for very large models | |
CN1140500A (en) | Distributed data base system | |
CN1627258A (en) | Driver-specific context for kernel-mode shimming | |
US8886671B1 (en) | Multi-tenant in-memory database (MUTED) system and method | |
CN1251088C (en) | Target integrated management system | |
CN1499362A (en) | System and device for addressing global variable by using multiple codes in integrated executable program of isomeric system structure | |
WO2007122021A1 (en) | A method for generating a robust software signature | |
CN1790343A (en) | System and method for producing interface code to use services of an enterprise information system | |
US8706767B2 (en) | Computer systems and methods for performing a database access to generate database tables based on structural information corresonding to database objects | |
US20050223356A1 (en) | System and method for program execution | |
CN1201187A (en) | Method for counting of custom/service unit and computer programme products | |
US6848110B2 (en) | Automatic feature augmentation for component based application programming interfaces | |
CN105677427A (en) | Module upgrading method and device | |
CN1975728A (en) | Apparatus and method for journaling database changes using minimized journal entries | |
CN101000621A (en) | Interdynamic access method and tool of IMS data base | |
CN102207856B (en) | Method and system for creating object of in-process component |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20070321 Termination date: 20120718 |