CN102946425B - Based on the Uniform Communication Platform service integration framework of OSGi - Google Patents

Based on the Uniform Communication Platform service integration framework of OSGi Download PDF

Info

Publication number
CN102946425B
CN102946425B CN201210435303.7A CN201210435303A CN102946425B CN 102946425 B CN102946425 B CN 102946425B CN 201210435303 A CN201210435303 A CN 201210435303A CN 102946425 B CN102946425 B CN 102946425B
Authority
CN
China
Prior art keywords
service
party
message
component
client terminal
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
Application number
CN201210435303.7A
Other languages
Chinese (zh)
Other versions
CN102946425A (en
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.)
Sheng Ke Polytron Technologies Inc
Original Assignee
Xian Polytechnic University
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 Xian Polytechnic University filed Critical Xian Polytechnic University
Priority to CN201210435303.7A priority Critical patent/CN102946425B/en
Publication of CN102946425A publication Critical patent/CN102946425A/en
Application granted granted Critical
Publication of CN102946425B publication Critical patent/CN102946425B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of Uniform Communication Platform service integration framework based on OSGi, comprise three aspects: client terminal service layer, as the access entrance of client terminal, and provide card i/f, for realizing the interworking at Access Layer of client and third party's integrated service; Inner alternation of bed, for client terminal layer and application container create message channel, for simplifying the management of platform, the load of balance platform; Application container, externally for third party's Integration Services provides unified interface, the transmission of internal administrative messag and and third party's integrated service system mutual.The unified communication service platform intergration framework that the present invention is based on OSGi can receive inquiry request that a large amount of client terminals sends and the business prompting that third party's integrated service sends simultaneously, and processes simultaneously, substantially increases integrated efficiency.

Description

Based on the Uniform Communication Platform service integration framework of OSGi
Technical field
The invention belongs to communication technical field, relate to a kind of Uniform Communication Platform service integration framework based on OSGi.
Background technology
Unified Communication is with IP (the Internet Protocol merged, Internet protocol) based on network, communicate with the IP of innovation and be applied as relation mechanism, not only by phone, fax, instant messaging, VoIP (Voice over Internet Protocol, the networking telephone) etc. various communication way merge, priorly be to provide a desktop door and platform, by the application organic integration of other enterprises in platform, realize the intercommunication of company information and share, break " information island ", this is the active demand of enterprise customer.In existing integration mode, communications platform need for each applications, spend a large amount of energy carry out proprietary protocol foundation, define message format and set up the exploitations such as communication link, reduce integrated efficiency.
Summary of the invention
The object of this invention is to provide a kind of Uniform Communication Platform service integration framework based on OSGi (Open Service Gatewayinitiative), solving communications platform and applications cannot high efficiency integrated problem, achieves platform to the dynamic integrity of third-party application and unloading.
Technical scheme of the present invention is: based on the Uniform Communication Platform service integration framework of OSGi, comprises three aspects:
(1) client terminal service layer, as the access entrance of client terminal, and provides card i/f, for realizing the interworking at Access Layer of client and third party's integrated service;
(2) inner alternation of bed, for client terminal service layer and application container create message channel, for simplifying the management of platform, the load of balance platform;
(3) application container, externally for third party's Integration Services provides unified interface, the transmission of internal administrative messag and and third party's integrated service system mutual.
Wherein, the implementation procedure of card i/f that client terminal service layer provides is:
A. the NameSpace of third party's integrated service is registered;
B. resolve client terminal be sent to the request of server and encapsulate;
C. set up JMS (Java Message Service, Java messenger service) to connect, set up the connection of message queue application;
D. the message of encapsulation is passed to inner alternation of bed.
Wherein, inner alternation of bed adopts message queue Clustering, and set up the connection of client terminal service layer and application container, the message of client terminal services layer encapsulates joins in message queue herein, application container takes out message from message queue, reaches the object of communication.
Wherein, application container, based on OSGi service, comprises JMS component, interface service component, Service controll component, thread pool services component and third party's integrated service component.
Wherein, JMS component is used for reception and the transmission of message in application container.
Wherein, interface service component is used for providing interface service for application container internal structure and third party's operation system, comprises the unified interface service pulling/Push Service, thread pool service and third party's operation system of JMS Messaging Service, message distribution services, business.
Wherein, registration service when Service controll component is mainly used in grafting, delete service when removing, distribute different business and the realization to third party's uniform service interface according to NameSpace during registration.
Wherein, thread pool services component is used for providing thread pool service for the route of message.
Wherein, mutual for the treatment of application container and third party's integrated service system of third party's integrated service component.
The invention has the beneficial effects as follows:
1. the present invention to be separated with application integration by Uniform Communication Platform and to adopt message queue mechanism, reduce Uniform Communication Platform because and apply the load that repeatedly causes alternately, and when load increases further, expansion can be realized by the multiple application container of distributed deployment.
2. the present invention is directed to different application Integrating, exploitation can Dynamical Deployment to the integrated service component of integrated framework, and integrated service component only needs to be concerned about embody rule service logic, communication, reliability, thread pool etc. are all provided by integrated framework, which save the development time, reduce coding work amount, reduce development cost, in addition integrated service component can dynamically be installed or unload, and also can share by multi version, achieves dynamic and the flexibility of system.
Accompanying drawing explanation
Fig. 1 is the structural representation of the Uniform Communication Platform service integration framework that the present invention is based on OSGi;
Fig. 2 is the component relation chart of application container in the present invention;
Fig. 3 is active inquiry flow chart in the present invention;
Fig. 4 is that in the present invention, application pushes flow chart.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Based on the Uniform Communication Platform service integration framework of OSGi, see accompanying drawing 1, based on the Uniform Communication Platform service integration framework of OSGi, comprise three aspects:
(1) client terminal service layer, as the access entrance of client terminal, and provides card i/f, for realizing the interworking at Access Layer of client and third party's integrated service;
What the present invention adopted is that the live collaboration server based on XMPP (eXtensible Messaging andPresence Protocol, easily extensible communication and presentation protocol) agreement of increasing income is as client terminal service layer.For office automation, the main process that server plug-ins realizes integrated work automation business is as follows:
A. the NameSpace of office automation business is registered;
B. set up JMS with inner alternation of bed to be connected, set up the connection of applying with message queue;
C. the message of client terminal and the JMS message of inner alternation of bed are monitored, after listening to the message matched with the NameSpace of this business, encapsulate after resolving the message that receives.Message encapsulation from client terminal is become JMS message format, the message encapsulation from inner alternation of bed is become platform and the mutual XMPP communication format of client terminal;
D. the message from message queue cluster is sent to client terminal, give inner alternation of bed by the news release from client terminal.
(2) inner alternation of bed, for client terminal layer and application create message channel the same period, for simplifying the management of platform, the load of balance platform;
Inner alternation of bed adopts message queue Clustering, set up the connection of client terminal service layer and external interface layer, the message of client terminal services layer encapsulates joins in message queue herein, and external interface layer takes out message from message queue, reaches the object of communication.
The present invention adopts the bus of open source projects Active MQ as transmission of messages between client terminal service layer and application container of Apache.
(3) application container, externally for third party's operation system provides unified interface, the transmission of internal administrative messag and and third party's integrated service system mutual.
Application container, based on OSGi service, comprises JMS component, interface service component, Service controll component, thread pool services component and third party's integrated service component, as shown in Figure 2.
All service interfaces of application container are all encapsulated in interface service component, in Fig. 2, are 1. JMS messenger service interface: define the method that internally alternation of bed gives out information, realized by JMS component, Service controll component calls; 2. be message distribution services interface: define the method for carrying out distribution processor after application container receives message, realized by Service controll component, JMS component calls; 3. for business pull/Push Service interface: define active inquiry, message pushing method, realized by integrated service component, Service controll component calls; 4. be thread pool service interface: all methods defining thread pool service, realized by thread pool component, Service controll component calls; 5. be third party's uniform service service interface: define the method that third party's operation system is served platform PUSH message, realized by Service controll component, third party's operation system is called.
JMS component is used for reception and the transmission of message in application container; Reception and the transmission of all integrated service component message be registered in application container are all realized by this component.
Being described as follows of JMS component function:
A. set up the connection of JMS with inner alternation of bed, set up and connection that message queue is applied, and the connection of message queue application is monitored, if broken string, reconnect immediately;
B. JMS message is monitored, if receive JMS message, then message call distribution services interface;
C. Service controll component is the realization to message distribution services interface, invokes thread pond service interface in Service controll component, obtains a thread, and the distribution of finishing service in this thread, and calls the pulling of business/push interface;
D. third party's integrated service component realize pull/push interface after, result is returned to JMS component, and by JMS component, result is published in the message queue cluster of inner alternation of bed, finally terminate this thread.
Registration service when Service controll component is mainly used in grafting, delete service when removing, distribute different business and the realization to third party's uniform service interface according to NameSpace during registration.
Being described as follows of Service controll component function:
A., the address of the unified interface externally provided is provided;
If the message of b. active inquiry request, then first parse the NameSpace in message, if having the NameSpace of coupling in the service of registration, then according to NameSpace, inquiry request message is distributed to corresponding integrated service component and goes process;
If c. Push Service request, then parsing NameSpace and after the match is successful, starting a thread from thread pool, in this thread, the distribution of finishing service, the process of business and internally alternation of bed send corresponding message.
Thread pool services component is used for providing thread pool service for the route of message, avoids the waste of platform resource, improves the operating efficiency of plateform system, utilize thread pool to control the quantity of thread.
Third party's integrated service component is mutual for the treatment of application container and third party's integrated service system.Concrete processing mode is as follows:
If a. active inquiry request message, then resolve inquiry request, and undertaken alternately, in third party's operation system, carrying out the inquiry of business, and Query Result being returned to JMS component by analysis result and corresponding third party's operation system.
If b. push request message, then the message encapsulation pushed in third party's operation system is become the transformat of message in platform, then Query Result is returned to JMS component.
As shown in Figure 3, the flow process of active inquiry is as follows:
1. the office automation business plug-in unit in access server is published to inquiry request after in message queue, and the JMS component in application container will listen to this request, and receive inquiry request;
2. JMS component is by message distribution services interface, is sent in Service controll component by this inquiry request message and processes;
3. in Service controll component, obtain a thread, then mate the NameSpace of office automation business, if the match is successful, be then distributed in the business component of office automation;
4. office automation business component carries out the inquiry of pending project or notice number to the office automation system, and Query Result is returned to JMS component.Query result transmission in message queue, and is terminated this thread by this component.
Finally monitored from message queue by the plug-in unit of client terminal service layer and extract this Query Result, and Query Result is returned to client terminal.
As shown in Figure 4, the flow process of application propelling movement is as follows:
When 1. pushing, the number message of pending item or notice is sent in the application container of platform by the third party's uniform service service interface provided that office automation operation system calls application container;
2. this message of Service controll component extraction mating according to NameSpace, after the match is successful, starts a thread, in this thread, by message distribution in office automation business component;
3. the transmission JMS message approach in the JMS messenger service interface interchange JMS component that provided by interface service of office automation business component, becomes JMS message by message encapsulation, and by news release in message queue, and terminate this thread.
The plug-in unit of last client terminal service layer is monitored and after getting message from message queue, by message push to client terminal.
The unified communication service platform intergration framework that the present invention is based on OSGi can receive inquiry request that a large amount of client terminals sends and the business prompting that third party's integrated service sends simultaneously, and process simultaneously, substantially increase integrated efficiency, owing to having accessed different integrated service components in OSGi service framework simultaneously, and can arbitrary extension integrated service component, because this reducing the development cost of communications platform.Inner alternation of bed have employed message queue Clustering, prevent the generation that information blocks, play equally loaded when load is larger, simultaneously when integrated third-party application is more can the multiple application container of distributed deployment to play the effect of equally loaded.

Claims (7)

1. based on the Uniform Communication Platform service integration framework of OSGi, it is characterized in that, comprise three aspects:
(1) client terminal service layer, as the access entrance of client terminal, and provides card i/f, for realizing the interworking in client terminal service layer of client terminal and third party's integrated service;
(2) inner alternation of bed, for client terminal service layer and application container create message channel, for simplifying the management of platform, the load of balance platform;
Described inner alternation of bed adopts message queue Clustering, set up the connection of client terminal service layer and application container, the message of client terminal services layer encapsulates joins in message queue herein, and application container takes out message from message queue, reaches the object of communication;
(3) application container, externally for third party's integrated service provides unified interface, the transmission of internal administrative messag and and third party's integrated service system mutual;
The implementation procedure of the card i/f that described client terminal service layer provides is:
A. the NameSpace of third party's integrated service is registered;
B. resolve client terminal be sent to the request of client terminal service layer and encapsulate;
C. set up JMS (Java Message Service, Java messenger service) to connect;
D. the message of encapsulation is passed to inner alternation of bed.
2. the Uniform Communication Platform service integration framework based on OSGi according to claim 1, it is characterized in that, described application container, based on OSGi service, comprises JMS component, interface service component, Service controll component, thread pool services component and third party's integrated service component.
3. the Uniform Communication Platform service integration framework based on OSGi according to claim 2, is characterized in that, described JMS component is used for reception and the transmission of message in application container.
4. the Uniform Communication Platform service integration framework based on OSGi according to claim 2, it is characterized in that, described interface service component is used for providing interface service for application container internal structure and third party's integrated service system, comprises the unified interface service pulling/Push Service, thread pool service and third party's integrated service system of JMS Messaging Service, message distribution services, business.
5. the Uniform Communication Platform service integration framework based on OSGi according to claim 2, it is characterized in that, registration service when described Service controll component is used for grafting, delete service when removing, distribute different business and the realization to third party's integrated service unified interface according to NameSpace during registration.
6. the Uniform Communication Platform service integration framework based on OSGi according to claim 2, is characterized in that, described thread pool services component is used for providing thread pool service for the route of message.
7. the Uniform Communication Platform service integration framework based on OSGi according to claim 2, is characterized in that, described third party's integrated service component is mutual for the treatment of application container and third party's integrated service system.
CN201210435303.7A 2012-11-05 2012-11-05 Based on the Uniform Communication Platform service integration framework of OSGi Expired - Fee Related CN102946425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210435303.7A CN102946425B (en) 2012-11-05 2012-11-05 Based on the Uniform Communication Platform service integration framework of OSGi

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210435303.7A CN102946425B (en) 2012-11-05 2012-11-05 Based on the Uniform Communication Platform service integration framework of OSGi

Publications (2)

Publication Number Publication Date
CN102946425A CN102946425A (en) 2013-02-27
CN102946425B true CN102946425B (en) 2015-10-28

Family

ID=47729331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210435303.7A Expired - Fee Related CN102946425B (en) 2012-11-05 2012-11-05 Based on the Uniform Communication Platform service integration framework of OSGi

Country Status (1)

Country Link
CN (1) CN102946425B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3031206B1 (en) * 2014-12-31 2018-01-19 Bull Sas INTERCONNECTION BOX FOR UTILITIES
CN104536815A (en) * 2015-01-28 2015-04-22 浪潮通用软件有限公司 Method and system for carrying out synergetic treatment on business applications
CN105847045B (en) * 2016-01-04 2019-06-18 中国电子科技网络信息安全有限公司 It is a kind of that package system and management method are applied based on Docker container
CN107104819B (en) * 2017-03-23 2019-10-11 武汉邮电科学研究院 Adaptive self-coordinating unified communications and communication means based on SDN
CN107222524B (en) * 2017-05-08 2020-07-31 广州智淘信息科技有限公司 Open type application service integration framework
CN110471664A (en) * 2019-06-21 2019-11-19 广州市途讯科技有限公司 A kind of heterogeneous software platform based on OSGi framework unifies interconnection method
CN111694620B (en) * 2020-06-15 2024-04-12 深圳前海微众银行股份有限公司 Interaction method, device and equipment of third party service and computer storage medium
CN114051055B (en) * 2022-01-12 2022-05-13 江苏银承网络科技股份有限公司 Data transmission method and device in different systems

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025747A (en) * 2006-02-22 2007-08-29 国际商业机器公司 Method and system for collecting inventory information in data processing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025747A (en) * 2006-02-22 2007-08-29 国际商业机器公司 Method and system for collecting inventory information in data processing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于OSGi的面向服务插件框架研究与应用;悦怡;《中国优秀硕士论文电子期刊网》;20091231;第30页第1段,第31页倒数两段,第32页第1段,图3.4 *

Also Published As

Publication number Publication date
CN102946425A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
CN102946425B (en) Based on the Uniform Communication Platform service integration framework of OSGi
EP3399715B1 (en) Protocol conversion method, platform, and protocol conversion gateway
CN102255934B (en) Cloud service dissemination method and cloud service intermediary
CN101309233B (en) Method realizing TCP connection reusing in instant communication
EP2561656B1 (en) Servlet api and method for xmpp protocol
CN104363291A (en) Network communication middleware implementation method
EP3396899B1 (en) System and method of multi-media conferencing between universal plug and play (upnp) enabled telephony devices and wireless area network (wan) devices
JP2002527002A (en) Telecommunications operating system
RU2399160C1 (en) METHOD AND SYSTEM FOR TRANSMITTING DATA BASED ON Peer-to-Peer TECHNOLOGY
US8644491B2 (en) Mechanism for multisite service state description
CN109617990B (en) Converged communication resource cloud sharing method and system
CN111240858B (en) Event scheduling method and component
CN102740466B (en) The method in Internet of Things, resource operated and device
CN104539510A (en) Multi-protocol-based information pushing system and method
CN104320441A (en) Method of sharing information between wireless communication systems
CN111953925A (en) Media stream processing method, device and system
WO2018006678A1 (en) Voice call method and apparatus
CN114840329A (en) Cloud and native hybrid integration method based on block chain
CN101159910B (en) Synchronous present state method and cluster server and terminal for implementing the method
US8804936B2 (en) Shared media access for real time first and third party media control
CN110582757A (en) Intermediate device for network routing of data messages
CN109688124B (en) Data exchange method based on video boundary
CN101150443B (en) Processing method for telecommunication network management message
CN101753577A (en) VoIP communication system based on SIP protocol and communication method thereof
KR20010096157A (en) Message relay system for the internet instant messenger servers

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170420

Address after: 710065 Zhongxing Industrial Park, No. 10, Yan Nan Road, high tech Zone, Shaanxi, Xi'an, China D403

Patentee after: Sheng Ke Polytron Technologies Inc.

Address before: 710048 Shaanxi city of Xi'an Province Jinhua Road No. 19

Patentee before: XI'AN POLYTECHNIC University

PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Uniform communication platform service integration frame based on OSGi (Open Service Gateway Initiative)

Effective date of registration: 20180628

Granted publication date: 20151028

Pledgee: Xi'an innovation financing Company limited by guarantee

Pledgor: Sheng Ke Polytron Technologies Inc.

Registration number: 2018990000499

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20190708

Granted publication date: 20151028

Pledgee: Xi'an innovation financing Company limited by guarantee

Pledgor: Sheng Ke Polytron Technologies Inc.

Registration number: 2018990000499

PC01 Cancellation of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20151028

Termination date: 20211105

CF01 Termination of patent right due to non-payment of annual fee