CN110471664A - A kind of heterogeneous software platform based on OSGi framework unifies interconnection method - Google Patents

A kind of heterogeneous software platform based on OSGi framework unifies interconnection method Download PDF

Info

Publication number
CN110471664A
CN110471664A CN201910543475.8A CN201910543475A CN110471664A CN 110471664 A CN110471664 A CN 110471664A CN 201910543475 A CN201910543475 A CN 201910543475A CN 110471664 A CN110471664 A CN 110471664A
Authority
CN
China
Prior art keywords
platform
web
interface
module
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910543475.8A
Other languages
Chinese (zh)
Inventor
李继鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Tuxun Technology Co Ltd
Original Assignee
Guangzhou Tuxun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Tuxun Technology Co Ltd filed Critical Guangzhou Tuxun Technology Co Ltd
Priority to CN201910543475.8A priority Critical patent/CN110471664A/en
Publication of CN110471664A publication Critical patent/CN110471664A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/14Travel agencies

Abstract

The invention discloses a kind of, and the heterogeneous software platform based on OSGi framework unifies interconnection method, comprising the following steps: step 1: starting the OSGI frame, loads and start custom block;Step 2: the platform interface module is registered to the Web scheduler;Step 3: it is judged whether or not access request;Step 4: the Web bridge receives and delivers HTTP request to the Web scheduler;Step 5: request is distributed to the platform interface module by the Web scheduler;Step 6: executing the external platform interface to connection module, obtain and parse data;Step 7: executing the data conversion module, convert data to unified format.Beneficial effect is: being eliminated each OTA platform difference by way of integration encapsulation, while realizing business datum docking, can effectively adapt to own system business structure, at the same can a variety of heterogeneous systems of interface flexibility, improve flexibility, adaptivity and the dynamic of system.

Description

A kind of heterogeneous software platform based on OSGi framework unifies interconnection method
Technical field
The present invention relates to online tourism technical fields, and in particular to a kind of heterogeneous software platform based on OSGi framework is unified Interconnection method.
Background technique
" online travel agency " i.e. OTA (Online Travel Agency).Tourist consumer passes through network to the predetermined trip of OTA Swim product or service, and by paying under online payment or line, each Main Part of Tourism can be carried out by network product marketing or Product sale.By industry years development, each OTA platform has all developed to form respective a set of data exchange agreement interface, but It is that these data-interfaces all have a certain difference in business, in structure, in quantity, is unfriendly for distribution downstream quotient 's.
Usual retail trader can all carry out with multiple OTA platforms and cooperate, and carry out data exchange by interface using technological means, In the case where interface protocol has differences, it will lead to software systems used in retail trader and need to do for each OTA platform Customization has deviated from platform flexibility and adaptivity principle.The development of work is influenced, the more serious business that will lead to is mixed Disorderly.
Therefore, realize a kind of unification, efficiently, the degree of coupling it is low interconnection method it is imperative.
Summary of the invention
The object of the invention is that solve the above-mentioned problems and to provide a kind of heterogeneous software based on OSGi framework flat Platform unifies interconnection method.
The present invention through the following technical solutions to achieve the above objectives:
A kind of heterogeneous software platform based on OSGi framework unifies interconnection method, including being suitable for the flat of system business function Platform grade sets of interfaces and program level interface and object entity suitable for system business function,
The platform class sets of interfaces, which refers to, meets operation system functional requirement, by service platform system by including but unlimited In the set of interfaces that the modes such as WEBAPI, WEBSERVICE are called,
Using the framework based on interface programming when described program grade interface refers to program development, it is used for constituting criterion, so as to Subsequent program is allowed to be realized according to this specification,
The object entity is intended to standardize necessity object information involved in platform interface,
The framework of heterogeneous software platform includes Web application, and the Web application can be disposed directly and operate in application server In,
It includes platform starter, Web bridge, OSGi framework that the Web, which is applied, and the OSGi framework includes Web scheduling Device, platform interface module, data conversion module, external platform interface to connection module,
The platform starter is responsible for starting the OSGi framework and the Web bridge, triggers the OSGi frame indirectly The starting and load of the Web scheduler inside frame,
The Web bridge operates in the Web application, and the OSGi framework is embedded in the Web application,
The Web scheduler operates in the OSGi framework as OSGi module,
The platform interface module is the external interface with external system data conversion, is capable of providing the data of unified structure It supports,
The data conversion module is that the built-in function of external system data conversion realizes module, can be by heterogeneous system Data structure needed for data structure is converted to practical business system,
The external platform interface realizes permission identification, interface requests, the data parsing of external platform system to connection module;
Heterogeneous software platform based on OSGi framework unify interconnection method the following steps are included:
Step 1: starting the OSGI frame, load and start custom block;
Step 2: the platform interface module is registered to the Web scheduler;
Step 3: it is judged whether or not access request;
Step 4: the Web bridge receives and delivers HTTP request to the Web scheduler;
Step 5: request is distributed to the platform interface module by the Web scheduler;
Step 6: executing the external platform interface to connection module, obtain and parse data;
Step 7: executing the data conversion module, convert data to unified format.
Preferably, WEBAPI is the software architecture style communicated by http protocol, WEBSERVICE is logical Cross the program standard that http protocol is communicated, carries out information exchange by soap protocol.
It is required preferably, platform class sets of interfaces makes platform docking that can be detached from particular technique, including multi-platform docking, Multilingual realization, multi-protocol communication, multi-platform docking refer to that sets of interfaces allows to run on Window, Linux, Mac operating system On operation system docked, it is multilingual realization refer to operation system by program development realization mating interface when, allow to make Become language with a variety of and realized docking exploitation, including but not limited to Java, PHP, Python, multi-protocol communication refers to that business is flat When platform mating interface, the agreements such as HTTP, SOAP can be used to carry out data exchange.
Beneficial effect is: eliminating each OTA platform difference by way of integration encapsulation, is realizing business datum docking While, can effectively adapt to own system business structure, while can a variety of heterogeneous systems of interface flexibility, improve the spirit of system Activity, adaptivity and dynamic.
Detailed description of the invention
Fig. 1 is that the workflow that a kind of heterogeneous software platform based on OSGi framework of the present invention unifies interconnection method is shown It is intended to;
Fig. 2 is the framework signal that a kind of heterogeneous software platform based on OSGi framework of the present invention unifies interconnection method Figure.
Specific embodiment
The present invention will be further explained below with reference to the attached drawings:
As Figure 1-Figure 2, a kind of heterogeneous software platform based on OSGi framework unifies interconnection method, can pass through integration The mode of encapsulation eliminates each OTA platform difference, is abstracted into the data middle layer for meeting system business structure;Moreover, needing When increasing the docking of OTA platform, without changing the service code of existing system, only abstract connect need to be carried out to the OTA in middle layer The code development of mouth;
This interconnection method includes suitable for the platform class sets of interfaces of system business function and suitable for system business function Program level interface and object entity,
Platform class sets of interfaces, which refers to, meets operation system functional requirement, by service platform system by including but is not limited to The set of interfaces that the modes such as WEBAPI, WEBSERVICE are called,
Using the framework based on interface programming when program level interface refers to program development, it is used for constituting criterion, after allowing The program in face is realized according to this specification, in this manner, can effectively adapt to heterogeneous platform when making multi-platform access Difference of the interface in data, structure,
The one mode of Object-Oriented Programming in field of software development based on interface programming, it is therefore an objective to enhance class with Between class, lower coupling between module and module makes software systems be easier to safeguard, extension,
The object entity necessity object information involved in platform interface that is intended to standardize covers production in OTA class system Product entity (Product), order entity (Order), product price entity (Price), product entity include product IDs, product Key, name of product, product attribute, product hierarchy, state, order entity include order ID, O/No., order price, order Date, state, product price entity include date, price, inventory, state;
Heterogeneous software platform, which refers in each OTA platform, is distributing the operational existing difference of technology realization, specific manifestation For different interface data structures, interface communication protocol,
The framework of heterogeneous software platform includes Web application, and Web application can be disposed directly and be run in the application server,
It includes platform starter, Web bridge, OSGi framework that Web, which is applied, and Web application is a kind of special Web application, It has relevant default platform feature, can directly dispose and run in the application server,
OSGi framework includes Web scheduler, platform interface module, data conversion module, external platform interface to connection module, OSGi framework safeguards above-mentioned module, dynamic module handoff functionality when OSGi framework realizes the operation of platform,
Platform starter operates in Web Application Server software, is responsible for starting OSGi framework and Web bridge, indirectly The starting and load of the Web scheduler inside OSGi framework are triggered,
Web bridge operates in Web application, is the core composition of Web Application Server software, carries Web application With the bridging functionality in OSGi framework between Web scheduler, realize that external request is applied to the transmitting of Web scheduler from Web,
OSGi framework is embedded in Web application, internal control functional module from loading, start to the full life of unloading Period,
Web scheduler operates in OSGi framework as OSGi module, to realize request distribution, Web scheduler includes Global resource agent object record the context-descriptive information of modules, tool can be navigated to according to the address URL of request Processing is made requests in module,
Platform interface module is the functional module that practical business system is defined according to specific business need, thus realize with it is outer The external interface of portion's system data conversion is capable of providing the data support of unified structure,
Data conversion module is the functional module that practical business system is defined according to specific business need, to realize outside The built-in function of system data conversion realizes module, can be converted to the data structure of heterogeneous system needed for practical business system Data structure,
External platform interface is the functional module realized according to external platform interface to connection module, and exterior flat may be implemented The functions such as the permission identification of platform system, interface requests, data parsing are the core component modules in unified interconnection method;
Heterogeneous software platform based on OSGi framework unify interconnection method the following steps are included:
Step 1: starting OSGi framework loads and starts custom block, when Web application starting, by platform starter, Start OSGi framework, contains platform interface module, data conversion module, external platform to trigger its internal load and start Interface is to the OSGi module including connection module;
Step 2: platform interface module is registered to Web scheduler, and Web scheduler listens to platform interface module start completion Afterwards, then the context-descriptive object of corresponding module is created, and is registered in the global resource agent object of Web scheduler and carries out pipe Reason;
Step 3: it is judged whether or not access request thens follow the steps if current Web application receives HTTP request 4, conversely, process terminates;
Step 4:Web bridge receives and delivers HTTP request to Web scheduler, and Web bridge will be applied from Web from connecing The HTTP request received is delivered to the Web scheduler operated in OSGi framework;
Request is distributed to platform interface module by step 5:Web scheduler, and Web scheduler is looked into through global resource agent object It askes, obtains platform interface module, and request is distributed to the module and selects corresponding external platform to connection module, execute external system Data acquisition work;
Step 6: executing external platform interface to connection module, obtain and parse data, external platform is basis to connection module The interface docking procedure that external platform technical specification is realized, the module are realized program level interface and are called via platform interface module External platform data are obtained, transfer to data conversion module to be handled after parsing;
Step 7: executing data conversion module, convert data to unified format, data conversion module is by external platform The data entity processing that interface obtains connection module is entity data object needed for operation system, as Product entity, Order entity, Price entity etc. return to the use of platform interface module after conversion;
Process terminates.
Preferably, WEBAPI is the software architecture style communicated by http protocol, WEBSERVICE is logical The program standard that http protocol is communicated, carries out information exchange by soap protocol is crossed, platform class sets of interfaces docks platform It can be detached from particular technique requirement, including multi-platform docking, multilingual realization, multi-protocol communication, multi-platform docking refer to interface The operation system that collecting allows to run in Window, Linux, Mac operating system is docked, and multilingual realization refers to business system System by program development realize mating interface when, allow using it is a variety of become language realize docking develop, including but not limited to Java, PHP, Python when multi-protocol communication refers to business platform mating interface, the agreements such as HTTP, SOAP can be used to be counted According to exchange.
The basic principles, main features and advantages of the invention have been shown and described above.The technical staff of the industry should Understand, the present invention is not limited to the above embodiments, and the above embodiments and description only describe originals of the invention Reason, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these changes and improvements It all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appending claims and equivalents circle It is fixed.

Claims (3)

1. a kind of heterogeneous software platform based on OSGi framework unifies interconnection method, it is characterised in that: including being suitable for system industry The platform class sets of interfaces for function of being engaged in and program level interface and object entity suitable for system business function,
The platform class sets of interfaces, which refers to, meets operation system functional requirement, by service platform system by including but is not limited to The set of interfaces that the modes such as WEBAPI, WEBSERVICE are called,
Using the framework based on interface programming when described program grade interface refers to program development, it is used for constituting criterion, after allowing The program in face realizes according to this specification,
The object entity is intended to standardize necessity object information involved in platform interface,
The framework of heterogeneous software platform includes Web application, and the Web application can be disposed directly and be run in the application server,
It includes platform starter, Web bridge, OSGi framework that the Web, which is applied, and the OSGi framework includes Web scheduler, puts down Platform interface module, data conversion module, external platform interface to connection module,
The platform starter is responsible for starting the OSGi framework and the Web bridge, is triggered in the OSGi framework indirectly The starting and load of the Web scheduler in portion,
The Web bridge operates in the Web application, and the OSGi framework is embedded in the Web application,
The Web scheduler operates in the OSGi framework as OSGi module,
The platform interface module is the external interface with external system data conversion, is capable of providing the data branch of unified structure It holds,
The data conversion module is that the built-in function of external system data conversion realizes module, can be by the data of heterogeneous system Data structure needed for structure is converted to practical business system,
The external platform interface realizes permission identification, interface requests, the data parsing of external platform system to connection module;
Heterogeneous software platform based on OSGi framework unify interconnection method the following steps are included:
Step 1: starting the OSGI frame, load and start custom block;
Step 2: the platform interface module is registered to the Web scheduler;
Step 3: it is judged whether or not access request;
Step 4: the Web bridge receives and delivers HTTP request to the Web scheduler;
Step 5: request is distributed to the platform interface module by the Web scheduler;
Step 6: executing the external platform interface to connection module, obtain and parse data;
Step 7: executing the data conversion module, convert data to unified format.
2. a kind of heterogeneous software platform based on OSGi framework according to claim 1 unifies interconnection method, feature exists In: WEBAPI is the software architecture style communicated by http protocol, and WEBSERVICE is to be led to by http protocol News, the program standard that information exchange is carried out by soap protocol.
3. a kind of heterogeneous software platform based on OSGi framework according to claim 1 unifies interconnection method, feature exists In: platform class sets of interfaces makes platform docking that can be detached from particular technique requirement, including multi-platform docking, multilingual realization, more associations View communication, multi-platform docking refer to that sets of interfaces allows to run on the operation system in Window, Linux, Mac operating system and carries out Docking allows to become language using a variety of when multilingual realization refers to that operation system realizes mating interface by program development Realize docking exploitation, including but not limited to Java, PHP, Python can when multi-protocol communication refers to business platform mating interface Data exchange is carried out using agreements such as HTTP, SOAP.
CN201910543475.8A 2019-06-21 2019-06-21 A kind of heterogeneous software platform based on OSGi framework unifies interconnection method Pending CN110471664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910543475.8A CN110471664A (en) 2019-06-21 2019-06-21 A kind of heterogeneous software platform based on OSGi framework unifies interconnection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910543475.8A CN110471664A (en) 2019-06-21 2019-06-21 A kind of heterogeneous software platform based on OSGi framework unifies interconnection method

Publications (1)

Publication Number Publication Date
CN110471664A true CN110471664A (en) 2019-11-19

Family

ID=68506960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910543475.8A Pending CN110471664A (en) 2019-06-21 2019-06-21 A kind of heterogeneous software platform based on OSGi framework unifies interconnection method

Country Status (1)

Country Link
CN (1) CN110471664A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021103580A1 (en) * 2019-11-27 2021-06-03 华为技术有限公司 Method for docking automatic driving application program between different development platforms
WO2022121045A1 (en) * 2020-12-09 2022-06-16 威创集团股份有限公司 Data docking method and apparatus, computer device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957865A (en) * 2010-10-27 2011-01-26 杭州新中大软件股份有限公司 Data exchange and sharing technology among heterogeneous systems
CN102750181A (en) * 2012-05-31 2012-10-24 深圳市远行科技有限公司 Web service processing engine system and method
CN102946425A (en) * 2012-11-05 2013-02-27 西安工程大学 Uniform communication platform service integration frame based on OSGi (Open Service Gateway Initiative)
CN104360846A (en) * 2014-10-27 2015-02-18 江西博微新技术有限公司 OSGi-based adaptive design method for authority management of Web application development platform based on OSGi
CN104579792A (en) * 2015-01-26 2015-04-29 四川中电启明星信息技术有限公司 Architecture and method for achieving centralized management of various types of virtual resources based on multiple adaptive modes
CN106899638A (en) * 2015-12-21 2017-06-27 中国科学院信息工程研究所 A kind of fusions networking relationships system for solving Heterogeneous data and method
CN108337138A (en) * 2018-01-10 2018-07-27 喻建琦 A kind of intelligent domestic system based on Internet of Things

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957865A (en) * 2010-10-27 2011-01-26 杭州新中大软件股份有限公司 Data exchange and sharing technology among heterogeneous systems
CN102750181A (en) * 2012-05-31 2012-10-24 深圳市远行科技有限公司 Web service processing engine system and method
CN102946425A (en) * 2012-11-05 2013-02-27 西安工程大学 Uniform communication platform service integration frame based on OSGi (Open Service Gateway Initiative)
CN104360846A (en) * 2014-10-27 2015-02-18 江西博微新技术有限公司 OSGi-based adaptive design method for authority management of Web application development platform based on OSGi
CN104579792A (en) * 2015-01-26 2015-04-29 四川中电启明星信息技术有限公司 Architecture and method for achieving centralized management of various types of virtual resources based on multiple adaptive modes
CN106899638A (en) * 2015-12-21 2017-06-27 中国科学院信息工程研究所 A kind of fusions networking relationships system for solving Heterogeneous data and method
CN108337138A (en) * 2018-01-10 2018-07-27 喻建琦 A kind of intelligent domestic system based on Internet of Things

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021103580A1 (en) * 2019-11-27 2021-06-03 华为技术有限公司 Method for docking automatic driving application program between different development platforms
WO2022121045A1 (en) * 2020-12-09 2022-06-16 威创集团股份有限公司 Data docking method and apparatus, computer device, and storage medium

Similar Documents

Publication Publication Date Title
US7725577B2 (en) Method and system to adaptively manage the quality of service of interactions between smart item networks and enterprise applications
Corredor et al. Knowledge-aware and service-oriented middleware for deploying pervasive services
CN113268319A (en) Business process customization and distributed process scheduling method based on micro-service architecture
US8843938B2 (en) Methods, systems, and computer program products for asynchronous resumption of a dataflow
CN110377438A (en) The method for routing of striding course communication interface, device and system
Da et al. Kalimucho: middleware for mobile applications
CN103092645B (en) A kind of geospatial information application system based on Microkernel and its implementation
CN102520936A (en) Method for realizing sharing of Socket communication service on Android platform
CN108229779B (en) Production line-oriented intelligent dynamic service combination method and system
CN110471664A (en) A kind of heterogeneous software platform based on OSGi framework unifies interconnection method
CN102375894B (en) Method for managing different types of file systems
US8886703B2 (en) Advertising and facilitating management access to added capabilities of intelligent devices in a system
CN101662463A (en) Device and method for customizing service flow for user
CN111897799A (en) Hydrological model service system based on process engine
CN101651631B (en) Method for message access in system integration of global station network of television station
CN1333342C (en) Exchange infrastructure system and method
CN111507676A (en) Method, device, storage medium and system for establishing and implementing business order flow
CN112817779A (en) Communication method, device, equipment and medium for modular application program
CN101404656A (en) Software interface design method for communicating with third party intelligent equipment protocol
CN116389552A (en) Heterogeneous data transmission system based on publish-subscribe model
Filippone et al. Synthesis of context‐aware business‐to‐business processes for location‐based services through choreographies
CN113110920B (en) Operation method, device, equipment and storage medium of block chain system
CN109597609A (en) A kind of software combination system
AU2006203580B2 (en) Enterprise application based multi-billing integration system
CN104407907B (en) A kind of method and system that web tab is converted into different application platforms code

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191119

RJ01 Rejection of invention patent application after publication