CN103401769A - Implementation method of universal gateway service framework - Google Patents

Implementation method of universal gateway service framework Download PDF

Info

Publication number
CN103401769A
CN103401769A CN2013103180730A CN201310318073A CN103401769A CN 103401769 A CN103401769 A CN 103401769A CN 2013103180730 A CN2013103180730 A CN 2013103180730A CN 201310318073 A CN201310318073 A CN 201310318073A CN 103401769 A CN103401769 A CN 103401769A
Authority
CN
China
Prior art keywords
gateway
service
gateway service
interface
realizes
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
CN2013103180730A
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.)
PCI Suntek Technology Co Ltd
Original Assignee
PCI Suntek 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 PCI Suntek Technology Co Ltd filed Critical PCI Suntek Technology Co Ltd
Priority to CN2013103180730A priority Critical patent/CN103401769A/en
Publication of CN103401769A publication Critical patent/CN103401769A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an implementation method of a universal gateway service framework. The invention mainly provides implementation of a universal gateway service. The implementation method is mainly used for realizing the classification of a communication layer and a service processing layer of a gateway and avoiding the repeated implementation of the same communication protocol in communication layers of different gateway application scenes. By virtue of aiming at different services, a universal implementation framework is provided for the protocol communication resolving and monitoring of the gateway, service processing of a gateway service end and return of the service processing result, and the separation of resolving from service processing of various protocols is finally realized.

Description

A kind of implementation method of universal gateway service framework
Technical field
The present invention relates to JAVA environmental applications field, particularly relate to a kind of implementation method of universal gateway service framework, the Communication Layer that the application of the invention can all kinds of gateway service ends of fine solution is realized and effective separation of operation layer realization.
Background technology
Communication between system and system is often undertaken by the mode of gateway, and gateway is normally based on the realization of certain agreement.The exploitation of gateway mainly comprises: processing two parts of the parsing of system interaction agreement and service logic, for higher agreements of frequency of utilization such as TCP, HTTP, SOAP, the implementation of standard is being arranged aspect the parsing of agreement, for the exploitation of gateway of each, need to carry out again exploitation for the parsing of agreement of transmission.For the parsing of agreement and the separating of Business Processing that reaches gateway, the framework that defines a kind of general gateway service is to realize communications protocol and resolve and the separating of Business Processing.
Summary of the invention
Technical problem to be solved by this invention is that the service architecture of gateway comprises: definition four parts of the implementation of the definition of service end gateway interface, the description of gateway service, gateway service, the Business Processing interface of gateway at the definition one general service end gateway architecture of cover.
1, the definition of gateway interface
Gateway interface has mainly defined startup and the method for closing of gateway, is defined as follows:
Figure BSA0000093084410000011
Each site realized the interface of IProxy integrated, and realized the method for start () and stop (), the startup of gateway and close by the JAVA container and be responsible for.
2, gateway service configuration describing document
The configuration file of gateway has mainly been described the needed parameter configuration in gateways and starting and running, and the configuration describing document of gateway is defined as follows:
According to above configuration file content, being described as follows of each configuration item:
The Listener label has defined the contextual monitor of gateway, for the startup at gateway with when closing, triggers the initialization of monitor and the method for destruction, and the interface class of monitor is defined as follows:
Figure BSA0000093084410000031
ContextInitialized is called in the startup of gateway service.
ContextDestroyed is called in the closing of gateway service.
The configuration in the agreement of the listening port of the gateway of Server label definition, IP address, realization, gateway operation needed attribute configuration information, Business Processing class and gateway processes request thread pond.
3, the implementation of gateway service
Gateway service must realize startup and the method for closing of IProxy interface and read the IP address of the monitoring in the gateway configuration file, port, context monitor, thread pool configuration information complete startup, initialization, monitoring, the Business Processing of gateway service and the realization of closing.The Business Processing of gateway comes finishing service to process by the service class of handle-class label definition in the gateway configuration description document
4, the Business Processing interface of gateway
Gateway service has defined unified Business Processing interface and has realized the request processing of client, and interface definition is as follows:
public?interface?Handler{
public?void?handle(Exchange?exchange)throwsIOException;
}
After the access of client was completed in the processing request that gateway service receives client, the Business Processing class of calling gateway was carried out the processing of finishing service.The Business Processing class is come the processing of finishing service and the realization of returning of result by the contextual information that access Exchange obtains the gateway service request.Exchange encapsulates according to concrete agreement, and the more extended method that provides according to the subclass of the different Exchange of agreement carrys out the processing of finishing service.
Description of drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Figure is that the present invention is the system principle schematic diagram;
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.Obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment that obtains, belong to the scope of protection of the invention.
Embodiment one, referring to figure,
The invention provides a kind of implementation method of skeleton of universal gateway.This patent provides the realization definition of gateway service.The principle schematic of system, referring to Fig. 1, specifically comprises following components:
In figure, S01 represents: the client of gateway
The realization of the client of gateway realizes by any language, only need to follow the standard of agreement.The client of gateway is based on initiating the Business Processing request toward gateway on the basis of communications protocol.
In figure, S02 represents: the gateway service container
The gateway service container starts gateway according to the configuration file of gateway and carries out the initial work of the related context of gateway, after gateways and starting is completed, gateway carries out the monitoring of port, after listening port received the request of client, gateway service was called Business Processing class in the gateway configuration file and is completed the processing request of gateway client.
In figure, S03 represents: gateway service is processed class.
Gateway service is processed class and is called by gateway service, and gateway service is processed class and undertaken processing with the finishing service that comes alternately of gateway client by the contextual information that obtains gateway.
By the description of above embodiment of the method, it is a cover software solution that the those skilled in the art can be well understood to the present invention, can realize by the mode the integration environment that software adds essential general hardware platform more.The part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software service, and as a part of software service set wherein in the application system application product.
For system embodiment, due to it substantially corresponding to embodiment of the method, so relevant part gets final product referring to the part explanation of embodiment of the method.Wherein said unit as the separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, namely can be positioned at a place, perhaps also can be distributed on a plurality of network element.Can select according to the actual needs wherein some or all of module to realize the purpose of the present embodiment scheme.Those of ordinary skills in the situation that do not pay creative work, namely can understand and implement.
In several embodiment that the application provides, should be understood that disclosed system and method, not surpassing in the application's spirit and scope, can be realized in other way.The above-named embodiment that the present invention is integrated in system applies is a kind of exemplary example, should be as restriction, and given particular content should in no way limit the application's purpose.
The above is only the specific embodiment of the present invention; should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (4)

1. the implementation method of a universal gateway service framework, be characterised in that the service end general purpose I Proxy proxy interface that provides unified, by realizing the IProxy interface, provides the realization of the gateway service end communication layer of the agreements such as TCP, HTTP, SOAP; The IProxy interface provides the startup of gateway service, the interface method of closing, and is defined as follows:
Figure FSA0000093084400000011
2. according to claim 1, its feature also comprises, the configuration describing document of unified XML is provided for the gateway service that realizes IProxy, according to the configuration describing document of gateway service complete the startup of gateway service, contextual initialization, port monitoring, accept client-requested, call the Business Processing class and complete the realization of the gateway life cycle of closing of the Business Processing of gateway service, gateway, the configuration describing document XML of gateway service is defined as follows:
3. method according to claim 2, gateway service realizes, it is characterized in that requirement according to the configuration service description document realize gateway service monitoring, receive the program development of request and request result part, the processing of concrete service logic realizes that by business module the Handle interface method of gateway realizes.
4. method according to claim 3, the realization of business module is characterized in that realizing that the interface of the Handle of gateway service completes the business procession of gateway client request.
CN2013103180730A 2013-07-24 2013-07-24 Implementation method of universal gateway service framework Pending CN103401769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013103180730A CN103401769A (en) 2013-07-24 2013-07-24 Implementation method of universal gateway service framework

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013103180730A CN103401769A (en) 2013-07-24 2013-07-24 Implementation method of universal gateway service framework

Publications (1)

Publication Number Publication Date
CN103401769A true CN103401769A (en) 2013-11-20

Family

ID=49565298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013103180730A Pending CN103401769A (en) 2013-07-24 2013-07-24 Implementation method of universal gateway service framework

Country Status (1)

Country Link
CN (1) CN103401769A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411905A (en) * 2016-10-10 2017-02-15 青海帝特斯软件开发有限公司 Method for implementing distributed architecture through soft routing
CN109039752A (en) * 2018-08-16 2018-12-18 安徽云才信息技术有限公司 A kind of SOA framework system based on unified gateway

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238187A (en) * 2011-07-26 2011-11-09 东念(杭州)科技有限公司 System of communication protocol based on TCP (Transmission Control Protocol)/IP (Internet Protocol) and realization method thereof
CN102761538A (en) * 2012-04-27 2012-10-31 南大傲拓科技江苏有限公司 Design management method for communication shared field applied to various communication interface gateways

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238187A (en) * 2011-07-26 2011-11-09 东念(杭州)科技有限公司 System of communication protocol based on TCP (Transmission Control Protocol)/IP (Internet Protocol) and realization method thereof
CN102761538A (en) * 2012-04-27 2012-10-31 南大傲拓科技江苏有限公司 Design management method for communication shared field applied to various communication interface gateways

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411905A (en) * 2016-10-10 2017-02-15 青海帝特斯软件开发有限公司 Method for implementing distributed architecture through soft routing
CN109039752A (en) * 2018-08-16 2018-12-18 安徽云才信息技术有限公司 A kind of SOA framework system based on unified gateway

Similar Documents

Publication Publication Date Title
CN108055248B (en) Dubbo framework-based remote calling method, server and storage medium
CN108667925B (en) Method and system for seamless access of WEB application to distributed system
CN110557357B (en) Remote procedure call protocol self-adaption method, related device and server
CN107203419A (en) Intermodule call method, apparatus and system in application program
WO2020036879A1 (en) In situ triggered function as a service within a service mesh
US9323587B2 (en) Method and system for automatic detecting and resolving APIs
US20150373148A1 (en) Method for processing access requests and web browser
US10033790B2 (en) Method for a connector providing transactional interoperability to multiple messaging providers to multiple application servers using the same implementation
CN111221630B (en) Business process processing method, device, equipment, readable storage medium and system
CN102866925B (en) Communication method and system for middleware and user interface
CN110933075B (en) Service calling method and device, electronic equipment and storage medium
CN110245029A (en) A kind of data processing method, device, storage medium and server
CN104954894A (en) Video traffic guiding method and device as well as electronic equipment
CN102375894B (en) Method for managing different types of file systems
CN112214334A (en) Micro-service calling method and device, electronic equipment and computer-readable storage medium
CN105516250B (en) Internet of Things service call platform and system
CN106357713B (en) Method for realizing remote procedure call, client device and server device
US10924527B2 (en) Dynamic workflow-based composite web service system and method
CN103401769A (en) Implementation method of universal gateway service framework
CN109981546B (en) Method and device for acquiring remote call relation between application modules
CN103391294A (en) Remote method invocation based on service description
CN111010346B (en) Message processing method, device, storage medium and device based on dynamic routing
CN105354081A (en) Synchronous service binding method and apparatus
CN109495331A (en) The system monitoring method and device of network management system
CN112905273A (en) Service calling method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131120