[go: up one dir, main page]

WO2011140914A1 - Method, device and service system for providing service information - Google Patents

Method, device and service system for providing service information Download PDF

Info

Publication number
WO2011140914A1
WO2011140914A1 PCT/CN2011/073359 CN2011073359W WO2011140914A1 WO 2011140914 A1 WO2011140914 A1 WO 2011140914A1 CN 2011073359 W CN2011073359 W CN 2011073359W WO 2011140914 A1 WO2011140914 A1 WO 2011140914A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
information
request
status
enterprise
Prior art date
Application number
PCT/CN2011/073359
Other languages
French (fr)
Chinese (zh)
Inventor
徐良
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011140914A1 publication Critical patent/WO2011140914A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Definitions

  • Embodiments of the present invention relate to communication technologies, and in particular, to a method for providing service information, an information cache device, an enterprise service bus, and a service oriented architecture service system.
  • SOA Service-Oriented Architecture
  • the SOA includes a service request device, a service provider, and an Enterprise Service Bus (hereinafter referred to as ESB).
  • the ESB is an aggregation routing distribution point of all request messages in the SOA architecture, and the service requesting device is connected to the ESB, and initiates a service A request to the service providing device through the ESB, and the ESB routes the service A request of the service requesting device to the corresponding service providing.
  • the service providing device puts the service A request into the cache for processing, and temporarily stores the processing result in the cache.
  • the service requesting device initiates a status request for querying service A through the ESB.
  • the service providing device queries the status of the service A from the cache, and then returns to the service requesting device through the ESB.
  • the service provider needs to deploy and maintain the cache device locally when conducting stateful services. Therefore, the service request device needs to access the service through the ESB remotely. State, thereby increasing the access delay of the service requesting device and reducing the access efficiency.
  • the embodiment of the invention provides a method, a device and a service system for providing service information, which solves the dilemma that the existing enterprise network architecture cannot rely on the ESB to carry out stateful services, improves access efficiency, and reduces access delay.
  • An embodiment of the present invention provides a service oriented architecture service system, including: an enterprise service bus, a service providing device, an information caching device, and a service requesting device;
  • the enterprise service bus is respectively connected to the service providing device and the service requesting device, and configured to send the application service request to the service providing device after receiving the application service request sent by the service requesting device;
  • the enterprise service bus is further connected to the information cache device, and the information cache device is configured to receive and save state information of the application service request sent by the service providing device by using the enterprise service bus;
  • the status information of the service request is used to indicate a processing status of the application service request by the service providing apparatus;
  • the information cache device is further configured to receive, by using the enterprise service bus, an acquisition service status request sent by the service requesting apparatus to obtain status information of the application service request, according to the acquiring a service status request, Status information describing the application service request is sent to the service requesting device via the enterprise service bus.
  • An embodiment of the present invention provides a service oriented architecture service system, including: an enterprise service bus, a service providing device, an information caching device, and a service requesting device;
  • the information cache device is connected to the enterprise service bus, and the enterprise service bus is connected to the service providing device.
  • the information cache device is configured to receive, by using the enterprise service bus, the service provider, After the service requesting device requests the control information to be controlled, the control information is saved;
  • the enterprise service bus is further connected to the service requesting device, configured to receive a request sent by the service requesting device, and obtain the requested control information from the information cache device to control the request.
  • An embodiment of the present invention further provides an information cache apparatus, including: an information receiving module, an information acquiring module, an information sending module, and a storage module;
  • the information receiving module is configured to receive status information of the application service request sent by the service providing device by using the enterprise service bus, and save the status information of the application service request to the storage module, and receive the service request device sent by using the enterprise service bus.
  • status information of the application service request is a processing status of the service providing device for the application service request;
  • status information of the application service request includes a service identifier for requesting the service request;
  • the information obtaining module is configured to obtain, according to the service identifier of the application service request carried in the service status request received by the information receiving module, the status information of the application service request in the storage module;
  • the information sending module is configured to send, after the information acquiring module acquires the status information, the response information to the service requesting apparatus by using the enterprise service bus, where the response information includes status information and service identifier of the application service request ;
  • the storage module is configured to store status information about the request service request received by the information receiving module.
  • the implementation of the present invention further provides an enterprise service bus, including: a service request adaptation module, a service providing adaptation module, and an information cache adaptation module;
  • the service request adaptation module is configured to receive an application service request sent by the service requesting device, and send the application service request to the service providing device, and configured to receive an acquisition service status request sent by the service requesting device;
  • the service providing an adaptation module configured to receive status information of the application service request sent by the service providing apparatus after the service providing apparatus processes the application service request;
  • the information cache adaptation module is configured to send the status information received by the service providing adaptation module to the information cache device, where the information cache device is configured to perform the service request according to the acquired service status request.
  • the service identifier after obtaining the status information of the application service request, receiving the service status response information sent by the information cache device, where the service status response information includes status information of the application service request.
  • the embodiment of the invention further provides a method for providing service information, including:
  • the status information of the status information requesting service request of the application service request sent by the service providing device is received and saved through the enterprise service bus;
  • the status information indicates a processing status of the application service request by the service providing apparatus; and the status information of the application service request includes a service identifier for requesting a service request;
  • Status information including a status information response information request service request of the application service request is transmitted to the service requesting device via the enterprise service bus.
  • the embodiment of the present invention provides a method, a device, and a service system for service information.
  • an information cache device connected to the ESB is added, so that the information cache device saves the processing status of the application service request returned by the service providing device.
  • the ESB acquires the processing status of the application service request through the information buffering device, and provides it to the service requesting device.
  • the information cache device saves the control information sent by the service providing device, so that the ESB can acquire the control information from the information cache device and control the request of the service requesting device.
  • the service requesting device accesses the service state information in the information cache device through the ESB high speed channel, the access delay of the service requesting device is reduced, and the performance of the system is improved. Since the information cache device connected to the ESB has a storage function, the purpose of relying on the ESB to carry out stateful services is realized.
  • FIG. 1 is a schematic structural diagram of an SOAI service system according to a first embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an information cache apparatus according to a second embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of an information cache apparatus according to a third embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an enterprise service bus according to a fourth embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an enterprise service bus according to a fifth embodiment of the present invention.
  • FIG. 6 is a flowchart of a method for providing service information according to a sixth embodiment of the present invention.
  • FIG. 7 is a flowchart of a method for providing service information according to a seventh embodiment of the present invention
  • FIG. 8A is a flowchart of a method for providing service information according to an eighth embodiment of the present invention.
  • 8B is a schematic structural diagram of a service system applied to a method for providing service information according to an eighth embodiment of the present invention.
  • FIG. 9 is a flowchart of a method for providing service information according to a ninth embodiment of the present invention.
  • FIG. 10 is a flowchart of a method for providing service information according to a tenth embodiment of the present invention. detailed description
  • FIG. 1 is a schematic structural diagram of an SOA service system according to a first embodiment of the present invention.
  • the SOA system of the present embodiment includes: The request device 10, the information cache device 20, the service providing device 30, and the enterprise service bus 40.
  • the enterprise service bus 40 is connected to the service providing device 30, the service requesting device 10, and the information cache device 20, respectively.
  • the information cache device 20 can store the status information transmitted by the service providing device 30, and can also store the control information transmitted by the service providing device 30, and can also be used to simultaneously store the status information and the control information.
  • each device When the status information is stored by the information buffer device 20, the functions of each device are as follows:
  • the enterprise service bus 40 is configured to transmit an application service request to the service providing device 30 after receiving the application service request sent by the service requesting device 10, and the service providing device 30 processes the application service request.
  • the information cache device 20 is for receiving status information of the application service request transmitted from the service providing device 30 via the enterprise service bus 40, and saving the status information of the application service request to the storage area.
  • the status information of the application service request is used to indicate the processing status of the service providing device for the application service request.
  • the storage area may be a cache area, and has the functions of querying, deleting information, and the like.
  • the enterprise service bus 40 transmits the application service request to the corresponding service providing device.
  • the service providing device receives the application service request forwarded by the enterprise service bus, and after processing the application service request, transmits the processing status information of the application service request to the information cache device 20 through the enterprise service bus 40.
  • the information cache device 20 saves the processing status information of the received application service request to the storage area.
  • the information cache device 20 is configured to receive an acquisition service status request sent by the service requesting device 10 through the enterprise service bus 40, and the information cache device service requesting device transmits the processing status information of the application service request to the service requesting device via the enterprise service bus.
  • the enterprise service bus 40 after receiving the service status request sent by the service requesting device 10, the enterprise service bus 40 sends the acquired service status request to the information cache device 20, and the information cache device 20 searches the storage area for the corresponding service status request.
  • the service processing status information of the application service request the information cache device 20 transmits the status information to the service requesting device via the enterprise service bus.
  • Information The state information stored in the cache device 20 can be precisely controlled when the ESB orchestrate the service, and the information cache device can also be deleted at regular intervals.
  • a persistent save policy can also be set to save the above status information to the persistent information base.
  • the service providing device Since the state information is uniformly stored in the information cache device, the service providing device does not need to cache the state information of the service, which reduces the development difficulty, improves the security and reliability of the state information, and enables a more flexible service.
  • the functions of each device are as follows:
  • the information cache device 20 is configured to store the control information for controlling the request of the service requesting device 10 transmitted by the service providing device 30 through the enterprise service bus 40, and then save the control information.
  • the enterprise service bus 40 is configured to receive a request sent by the service requesting device 10, and obtain control information of the request from the information cache device 20, and control the request.
  • the service providing device saves control information on the request for the service requesting device in advance in the information cache device.
  • the enterprise service bus acquires control information about the service request in the information cache device, and controls the service request according to the control information (for example, according to the control information to the service providing device) Forwarding the service request, or discarding the service request), thereby implementing ESB service scheduling and control of various services.
  • the enterprise service bus 40 can transmit information to or receive information from the information caching device through an interface with the information caching device 20 (e.g., an access adapter).
  • the enterprise service bus 40 sends a request for query information, insertion information, deletion information, etc. to the information cache device 20 to access information in the information cache device 20.
  • the information caching device 20 can interact with the enterprise service bus via an interface with the enterprise service bus 40 (e.g., an access adapter).
  • an information cache device connected to the ESB is added in the SOA architecture, and the information cache device stores the processing status of the request service request returned by the service providing device.
  • the ESB acquires the processing status of the request service request through the information cache device, and provides it to the service requesting device. Since the service requesting device can access the service state information in the information cache device through the ESB high-speed channel, the access delay of the service requesting device is reduced, and the performance of the system is improved. Further, the ESB can also obtain control information for controlling the request for service from the information cache device, thereby implementing intelligent control of the service by the ESB. Since the information cache device connected to the ESB has a storage function, the purpose of relying on the ESB to carry out stateful services is realized.
  • FIG. 2 is a schematic structural diagram of an information cache apparatus according to a second embodiment of the present invention.
  • the information buffering device shown in Fig. 2 can be used as an embodiment of the information buffering device shown in Fig. 1.
  • the information cache apparatus provided in this embodiment includes: an information receiving module 201 information, an obtaining module 202, an information sending module 203, and a storage module 204.
  • the information receiving module 201 is configured to receive status information of the application service request sent by the service providing device by using the enterprise service bus, and save the status information of the application service request to the storage module 204, and receive the service request device sent by the enterprise service bus. Obtaining a service status request; status information of the application service request is a processing status of the service providing device for the application service request; and status information of the application service request includes a service identifier for requesting the service request.
  • the information obtaining module 202 is configured to obtain the status information of the application service request in the storage module 204 according to the service identifier of the application service request carried in the service status request received by the information receiving module 201.
  • the information sending module 203 is configured to send, after the information acquiring module 202 obtains the status information, the response information to the service requesting apparatus by using the enterprise service bus, where the response information includes the status information of the application service request and the service identifier.
  • the storage module 204 is configured to store status information received by the information receiving module 201 for the request for service.
  • the information receiving module 201 receives the application service request sent by the service providing device through the enterprise service bus after the service providing device processes the application service request sent by the service requesting device.
  • the status information is saved to the storage module 204 for status information of the application service request.
  • the information acquiring module 202 acquires the information receiving in the storage module 204 according to the service identifier of the application service request carried in the service status request.
  • the status information of the above application service request received by the module 201.
  • the information sending module 203 sends the response information to the service requesting device through the enterprise service bus when the information acquiring module 202 acquires the status information of the application service request, and the response information includes the status of the application service request acquired by the information acquiring module 202 from the storage module 204.
  • Information and service identification is used to identify the status of the application service request acquired by the information acquiring module 202 from the storage module 204.
  • the information receiving module 201 is further configured to receive, by using an enterprise service bus, control information that is sent by the service providing device and controls the request of the service requesting device, by using the service control policy of the service providing device to perform intelligent control on the related service.
  • the control information is saved to the storage module 204, so that after the enterprise service bus acquires the control information, the request of the service requesting device is controlled according to the control information.
  • the information receiving module 201 is further configured to: after the enterprise service bus receives the application service request sent by the service requesting device, receive an acquisition control information request sent by the enterprise service bus for acquiring control information for the application service request;
  • the control information request includes a monthly service identification requesting a service request.
  • the information sending module 203 is further configured to: when the storage module queries the control information for requesting the service request according to the service identifier of the application service request, send, to the enterprise service bus, control information for requesting the service request, so that the enterprise service The bus controls the request for service based on the control information.
  • the storage module 204 is further configured to store the control information received by the information receiving module 201.
  • the service providing device transmits control information for controlling the request of the service requesting device to the enterprise service bus, and the information receiving module 201 receives the control information through the enterprise service bus, and saves the control information to the storage module 204.
  • the information receiving module 201 receives the service on the enterprise service bus After requesting the service request sent by the device, the request for obtaining the control information sent by the enterprise service bus is received. After receiving the request for obtaining the control information, the information sending module 203 sends a control request for the service request to the enterprise service bus when the storage module 204 queries the control information for the request service request according to the service identifier of the application service request. Information so that the Enterprise Service Bus controls the request for service based on the control information.
  • the storage module 204 can be a cache area. As shown in FIG. 3, to improve the reliability of the service system, the storage module 204 includes a cache area, a persistent information base, and a persistent storage module, and the information received from the enterprise service bus is directly saved to the cache area.
  • the persistence save module is used to save the information in the cache area to the persistent information base according to the persistence save policy so that no information is lost after the system is powered off.
  • the information cache device of the embodiment receives the status information about the application service request sent by the service providing device via the enterprise service bus. After the service requesting device issues the request for obtaining the service status, the enterprise service bus can directly obtain the status information of the application service request from the information cache device, so that the service providing device does not need to save the status information of the application service request, thereby reducing the service providing device. load. Since the service requesting device accesses the service state information in the information cache device through the ESB high-speed channel, the access delay of the service requesting device is reduced, the performance of the system is improved, and conditions for the stateful service relying on the ESB are provided. Further, the ESB can also acquire control information for controlling the request of the service requesting device from the information cache device, thereby intelligently controlling the service requesting device.
  • FIG. 4 is a schematic structural diagram of an enterprise service bus according to a fourth embodiment of the present invention.
  • the enterprise service bus shown in FIG. 4 can be used as an embodiment of the enterprise service bus shown in FIG. 1.
  • the embodiment includes: a service request adaptation module 401, a service providing adaptation module 402, and an information cache adaptation module 403.
  • the service request adaptation module 401 is configured to receive an application service request sent by the service requesting device, and send the application service request to the service providing device, and is further configured to receive the obtained service status request sent by the service requesting device.
  • the service providing adaptation module 402 is configured to: after the service providing device processes the request service request, The status information of the application service request sent by the service providing device.
  • the information cache adaptation module 403 is configured to send the status information received by the service providing adaptation module 402 to the information cache device.
  • the information cache device obtains the application service according to the service identifier of the application service request carried in the acquisition service status request. After the requested status information, the service status response information sent by the information cache device is received, and the service status response information includes status information of the request service request.
  • the ESB interacts with the service requesting device through the service request adaptation module 401, that is, receives an application service request and a service status request sent by the service requesting device.
  • the ESB interacts with the service providing device through the service providing adaptation module 402, that is, receives status information of the application service request sent by the service providing device.
  • the ESB interacts with the information cache device through the information cache adaptation module 403, that is, sends status information requesting the service request to the information cache device, and receives the service status response information sent by the information cache device.
  • the embodiment further includes: an application service request control module 404.
  • the service providing adaptation module 402 is further configured to receive control information that is sent by the service providing device and that controls the application service request received by the service request adaptation module 401.
  • the information cache adaptation module 403 is further configured to send the control information received by the service providing adaptation module 402 to the information cache device, and is further configured to send the acquisition control information request to the information cache device, and obtain the control information according to the information cache device.
  • the control information sent by the information cache device to the request service request is received.
  • the obtaining control information request is used to obtain control information for requesting a service request, and the obtaining control information request includes a service identifier for requesting the service request;
  • the application service request control module 404 is configured to control the application service request according to the control information of the application service request buffered by the information cache adaptation module 403. Specifically, after receiving the control information sent by the service providing apparatus and controlling the application service request, the service providing adaptation module 402 sends the control information to the information cache apparatus. After receiving the application service request sent by the service requesting device, the service request adaptation module 401 sends an acquisition control information request to the information cache device.
  • the application service request control module 404 after the service request adaptation module 401 sends the acquisition control information request to the information cache device, and the information cache device queries the control information for the application service request according to the service identifier of the application service request, the receiving information cache device sends The control information for the application service request, and the application service request is controlled according to the control information.
  • the enterprise service bus sends an application service request sent by the service requesting device to the service providing device, and forwards the status information of the application service request sent by the service providing device to the information cache device, and the information cache device saves the service state information. . Further, the enterprise service bus forwards the control information sent by the service providing device to the information cache device. Therefore, the ESB can directly obtain the status information about the application service request from the information cache device and send the status information to the service request device, and can also receive the service. After requesting the request sent by the device, the request of the service requesting device is controlled according to the control information acquired in the information cache device. Thus, the present embodiment improves the access delay of the service requesting device, reduces the load on the service providing device, and provides conditions for relying on the ESB to carry out stateful services.
  • FIG. 6 is a flowchart of a method for providing service information according to a sixth embodiment of the present invention.
  • the executor of this embodiment may be the information cache device shown in FIG. 1 or FIG. 2, that is, the technical solution of the method for providing service information according to the embodiment of the present invention is described from the perspective of the information cache device. As shown in FIG. 6, this embodiment includes:
  • Step 61 After the service providing device sends the application service request processing to the service requesting device, the state information of the application service request sent by the service providing device is received and saved through the enterprise service bus; wherein the status information of the application service request indicates the service providing device The processing status of the application service request, and the status information of the application service request includes the service identifier of the application service request.
  • the ESB receives the application service request sent by the service requesting device (application service request indicates service request) After requesting the device to request the service providing device to provide the service, the application service request is routed to the service providing device. It should be noted that, while the application service request sent by the service requesting device is sent to the service providing device, the ESB may also send the application service request to the information cache device, so that the information cache device saves the application service request. After the subsequent service requesting apparatus transmits the acquisition service status request through the ESB, the information cache apparatus returns the intermediate status information of the application service request to the service requesting apparatus when the service providing apparatus does not return the processing status.
  • the service providing device After processing the request service request, the service providing device sends the processing status of the application service request, that is, the status information of the application service request, to the ESB, and the ESB sends the information to the information cache device.
  • the information cache device saves the status information of the request service request received by the ESB, so that the service request device acquires through the ESB.
  • Step 62 Receive the service status request sent by the service requesting device by using the enterprise service bus, and obtain the status information of the saved application service request according to the service identifier of the application service request carried in the service status request.
  • the obtaining service status request is used to obtain a processing status of the service providing device for requesting the service request.
  • the service requesting device After the service requesting device sends the request service request, it sends a request for obtaining the service status to the ESB. Forwarded by the ESB to the information cache device. After receiving the service status request, the information cache device queries the service status of the application service request in the storage area according to the service identifier of the application service request carried in the service status request. If the status information of the application service request is found, it indicates that the service providing device has processed the application service requesting device, and if not found, it indicates that the service providing device has not returned the processing status of the application service request.
  • Step 63 Send response information including status information of the request service request to the service requesting apparatus through the enterprise service bus.
  • the information cache device After obtaining the status information of the application service request from the storage area, the information cache device returns a response message to the service requesting device through the ESB, and the response information includes status information of the request service request.
  • the service requesting device can obtain the application service request corresponding to the service status information in the response information according to the service identifier of the application service request.
  • the intermediate status information of the application service request may also be returned to the service requesting apparatus.
  • the method further includes: receiving, by the enterprise service bus, the control information sent by the service providing device and controlling the request for the service request.
  • the ESB After receiving the application service request sent by the service requesting device, the ESB obtains relevant control information of the application service request from the information cache device, and intelligently controls the application service request according to the control information.
  • the method further includes: providing service information
  • the device may also save the information to the persistent information base according to the persistent preservation policy, so that the information is not lost after the system is powered off.
  • the embodiment provides a method of service information, and the information cache device receives status information about an application service request sent by the service providing device via the enterprise service bus.
  • the enterprise service bus can directly obtain the status information of the application service request from the information cache device, so that the service providing device does not need to save the status information of the application service request, thereby reducing the service providing device. load. Since the service requesting device accesses the service state information in the information caching device through the ESB high-speed channel, the access delay of the service requesting device is reduced, the performance of the system is improved, and conditions for the stateful service relying on the ESB are provided. Further, the ESB can also obtain control information for controlling the request of the service requesting device from the information cache device, thereby intelligently controlling the service requesting device.
  • FIG. 7 is a flowchart of a method for providing service information according to a seventh embodiment of the present invention. As shown in FIG. 7, the embodiment includes:
  • Step la The service requesting device sends an application service request to the service providing device through the ESB.
  • the application service request includes the service identifier of the application service request.
  • Step 2a The ESB stores the application service request in the information cache device.
  • Step 3a The ESB routes the application service request to the service providing device for service processing.
  • Step 4a The service requesting device sends an access service status request carrying the service identifier of the application service request through the ESB.
  • Step 5a The ESB forwards the get service status request to the information cache device.
  • Step 6a The service providing device sends the status information of the application service request to the ESB.
  • the service providing device ends the processing, and sends the status information of the application service request to the ESB.
  • the status information of the application service request returned by the service providing device includes the service identification of the application service request.
  • Step 7a The ESB sends the status information of the application service request to the information cache device.
  • Step 8a After obtaining the status information of the application service request, the information cache device sends the status information of the application service request to the ESB.
  • the information cache device updates the status information of the application service request existing in the storage area after receiving the status information of the application service request.
  • the information cache device obtains the status information of the application service request according to the service identifier of the application service request in the service status request, and returns the status information of the application service request to the ESB.
  • Step 9a The ESB sends the status information of the application service request to the service requesting device.
  • the embodiment provides a method of service information, and the information cache device receives status information about an application service request sent by the service providing device via the enterprise service bus.
  • the enterprise service bus can directly obtain the status information of the application service request from the information cache device, so that the service providing device does not need to save the status information of the application service request, thereby reducing the service providing device. load. Since the service requesting device accesses the service status information in the information cache device through the ESB high speed channel, the access delay of the service requesting device is reduced, and the performance of the system is improved.
  • FIG. 8A is a flowchart of a method for providing service information according to an eighth embodiment of the present invention
  • FIG. 8B is a flowchart A schematic diagram of a service system structure applied to a method for providing service information according to an eighth embodiment of the present invention.
  • a short message weather forecast short message service is taken as an example to describe a method for providing service information.
  • the SOA system shown in FIG. 8B includes: an Application Service Gateway (ASG), an ESB and a terminal, and an information cache device.
  • ASSG Application Service Gateway
  • ASG completes the access, authentication and SLA check of third-party applications, and ASG opens the ParlayX2.1 interface (or SDP extended Web Service interface) for third-party applications.
  • the terminal presents the product to the user, and provides operations such as portal ordering.
  • the ESB completes business orchestration, message routing distribution, and protocol conversion.
  • the ESB interacts with the ASG, the information cache device, and the terminal, respectively.
  • the ParlayX 2.1 interface or SDP extended Web Service interface is used between the ESB and the ASG; the interface between the ESB and the information cache device uses the RMI extension interface.
  • the ASG After the ASG sends a message to the ASG through the sendSMS interface of parlayX2.1, the ASG can obtain the status information of the short message service from the information cache device through the getSmsDeliveryStatus message, and the status information is saved in the information cache device connected to the ESB.
  • the ASG is a service requesting device
  • the terminal is a service providing device.
  • this embodiment includes:
  • Step lb The ASG sends a weather forecast message to the terminal through the ESB.
  • Step 2b The ESB stores the weather forecast message in the information cache device.
  • Step 3b The ESB forwards the weather forecast message to the terminal.
  • Step 4b The ASG queries the weather forecast message sending status through the ESB.
  • the ASG queries the status of the weather forecast message transmission through the getSmsDeliveryStatus message.
  • Step 5b The ESB sends a request for querying the status of the weather report message to the information cache device.
  • Step 7b The ESB saves the weather report SMS receipt to the information cache device.
  • Step 8b After querying the weather report short message receipt in the storage area, the information cache device sends the weather forecast SMS receipt of the terminal to the ESB.
  • the information cache device queries the weather report short message transmission status in the storage area according to the request sent by the ESB to query the weather report short message transmission status.
  • Step 9b The ESB returns the terminal's weather forecast SMS receipt to the ASG.
  • a method for providing service information is provided.
  • the ASG sends a weather forecast message to the terminal through the ESB, and the terminal receives the weather report short message to send a weather report short message status receipt to the ESB, and the information cache device receives the weather report short message status receipt sent by the terminal through the ESB.
  • the ESB queries the status information of the weather forecast message from the information cache device, so that the terminal does not need to save the weather report short message status receipt. Since the ASG accesses the weather report short message status receipt in the information cache device through the ESB high-speed channel, the ASG access delay is reduced, and the performance of the system is improved.
  • FIG. 9 is a flowchart of a method for providing service information according to a ninth embodiment of the present invention.
  • This embodiment mainly describes a technical solution of the control information sent by the service providing apparatus in the method for providing service information according to the embodiment of the present invention. As shown in FIG. 9, this embodiment includes:
  • Step lc The service providing device sends control information to the ESB.
  • the control information for controlling the request of the service requesting means by the service providing means includes control information for controlling the request for service request, and may further include control information for controlling the request for obtaining the service status.
  • Step 2c The ESB stores the control information in the information cache device.
  • Step 3c The service requesting device initiates an application for service request 1.
  • Step 4c The ESB saves the control information according to the service identifier query information cache device of the application service request 1.
  • the ESB searches for the control information of the application service request 1 in the storage area according to the service identifier of the application service request 1.
  • Step 5c The ESB acquires control information sent by the information cache device, and determines to discard the application service request 1 according to the control information.
  • the processing method of the application service request 1 is determined based on the control information. If the ESB does not find the control information about the application service request 1, the application service request 1 is processed in the normal manner.
  • Step 6c The service requesting device initiates an application service request 2.
  • Step 7c The ESB queries the control information stored in the information cache device according to the service identifier of the application service request 2.
  • the ESB searches for a control information about the application service request 2 in the storage area.
  • Step 8c The ESB acquires control information sent by the information cache device, and determines to forward the application service request 2 according to the control information.
  • Step 9c The ESB forwards the request service request 2 to the service providing device.
  • the embodiment provides a method for service information, and the information cache device receives the control information of the application service request sent by the service providing device through the ESB.
  • the ESB obtains control information for requesting the service request from the information cache device, and controls the application service request, thereby implementing intelligent control of the service by the ESB.
  • FIG. 10 is a flowchart of a method for providing service information according to a tenth embodiment of the present invention.
  • an "ASG requires an ESB to report an uplink short message of a specific access code and discard an uplink short message of another access code" as an example.
  • the ASG is a service providing device
  • the terminal is a service requesting device.
  • this embodiment includes:
  • Step Id The ASG sends the control message "Upload SMS with access code 6666 and discards uplink SMS with access code 5555" to the ESB.
  • Step 2d The ESB stores the control information in the information cache device.
  • Step 3d The terminal uses the access code 5555 to order weather forecast messages on the ASG through the ESB.
  • Step 5d The ESB obtains the "uplink short message with the access code of 5555 discarded" sent by the information cache device.
  • the control information according to the control information, discards the subscription weather forecast message sent by the terminal using the access code 5555.
  • the ESB queries the information cache device for the control information of "uploading the uplink short message with the access code 6666 and discarding the incoming short message of the access code 5555". Since the above control information indicates "discard the uplink message of the access code 5555", the subscription weather forecast message sent by the access code 5555 is not sent to the ASG.
  • Step 6d The terminal uses the access code 6666 to order weather forecast messages on the ASG through the ESB.
  • Step 8d The ESB obtains the "uplink message with the access code of 6666" sent by the information cache device.
  • Step 9d According to the obtained control information, the ESB reports to the ASG the subscription weather forecast message sent by the terminal using the access code 6666.
  • a method for providing service information is provided.
  • the information cache device receives control information about the uplink short message sent by the ASG through the ESB.
  • the ESB obtains the control information of the uplink short message from the information cache device, and determines that the uplink short message with the access code of 6666 needs to be reported to the ASG according to the control information, and reports the uplink to the ASG. short message.
  • the ESB When the terminal sends an uplink short message with the access code of 5555, the ESB obtains the control information of "discarding the uplink short code of the access code 5555" from the information cache device, and determines that the uplink short message with the access code of 5555 is not needed. If the report is reported to the ASG, the uplink short message is discarded. Thereby, the purpose of the ESB to intelligently control the service according to the control information in the information cache device is realized.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A method, device and service system for providing service information, wherein the service system includes: an Enterprise Service Bus (ESB) is connected with a service provision device and a service request device respectively, and is used for sending a service application request to the service provision device after receiving the service application request sent by the service request device; the ESB is also connected with an information cache device, and the information cache device is used for receiving, via the ESB, and storing the state information of the service application request sent by the service provision device; the information cache device is also used for receiving, via the ESB, a service state obtainment request which is sent by the service request device and is used for obtaining the state information of the service application request, and for sending the state information of the service application request to the service request device via the ESB according to the service state obtainment request. The embodiments of the present invention achieve the purpose of developing stateful services in dependence on the ESB.

Description

提供服务信息的方法、 装置及服务系统 本申请要求于 2010 年 07 月 29 日提交中国专利局、 申请号为 201010243893.4、 发明名称为"提供服务信息的方法、 装置及服务系统"的中国 专利申请的优先权, 其全部内容通过引用结合在本申请中。  Method, device and service system for providing service information The present application claims to be filed on July 29, 2010 in Chinese Patent Application No. 201010243893.4, entitled "Method, Device and Service System for Providing Service Information" Priority is hereby incorporated by reference in its entirety.
技术领域 Technical field
本发明实施例涉及通信技术, 尤其涉及一种提供服务信息的方法、 信息 緩存装置、 企业服务总线及面向服务的体系结构服务系统。  Embodiments of the present invention relate to communication technologies, and in particular, to a method for providing service information, an information cache device, an enterprise service bus, and a service oriented architecture service system.
背景技术 Background technique
面向服务的体系结构 ( Service-Oriented Architecture, 以下简称: SOA ) 通过服务之间定义的接口和契约, 将应用程序的不同功能单元(服务)联系 在一起。 其中, 接口的定义独立于实现服务的硬件平台、 操作系统和编程语 言。 使得不同系统的服务以统一的方式进行交互。 SOA支持将业务转换为一 组相互链接的服务或可重复任务, 可通过网络访问这些服务和任务。  Service-Oriented Architecture (SOA) links different functional units (services) of an application through interfaces and contracts defined between services. The definition of the interface is independent of the hardware platform, operating system, and programming language that implement the service. Enables services of different systems to interact in a uniform manner. SOA supports transforming a business into a set of interconnected services or repeatable tasks that are accessible over the network.
SOA 包括服务请求装置、 服务提供装置和企业服务总线 (Enterprise Service Bus, 以下简称: ESB )。 其中, ESB为 SOA架构中所有请求消息的汇 聚路由分发点,服务请求装置与 ESB连接,通过 ESB向服务提供装置发起服 务 A请求, ESB将该服务请求装置的服务 A请求路由给相应的服务提供装置, 服务提供装置接收到服务 A请求后, 将服务 A请求置入緩存中进行处理, 并 将处理结果暂存在緩存中。后续该服务请求装置通过 ESB发起查询服务 A的 状态请求。 服务提供装置通过 ESB接收到查询服务 A的状态请求后, 从緩存 中查询出服务 A的状态后, 通过 ESB返回服务请求装置。  The SOA includes a service request device, a service provider, and an Enterprise Service Bus (hereinafter referred to as ESB). The ESB is an aggregation routing distribution point of all request messages in the SOA architecture, and the service requesting device is connected to the ESB, and initiates a service A request to the service providing device through the ESB, and the ESB routes the service A request of the service requesting device to the corresponding service providing. After receiving the service A request, the service providing device puts the service A request into the cache for processing, and temporarily stores the processing result in the cache. Subsequently, the service requesting device initiates a status request for querying service A through the ESB. After receiving the status request of the query service A by the ESB, the service providing device queries the status of the service A from the cache, and then returns to the service requesting device through the ESB.
由于 ESB无状态服务功能, 在开展有状态业务时, 服务提供装置需在本 地部署并维护緩存装置。 因此, 服务请求装置需通过 ESB远程访问服务的状 态, 从而增加了服务请求装置的访问延迟, 降低了访问效率。 发明内容 Due to the ESB stateless service function, the service provider needs to deploy and maintain the cache device locally when conducting stateful services. Therefore, the service request device needs to access the service through the ESB remotely. State, thereby increasing the access delay of the service requesting device and reducing the access efficiency. Summary of the invention
本发明实施例提供一种提供服务信息的方法、 装置及服务系统, 解决了 现有企业组网架构中不能依赖 ESB开展有状态业务的困境, 提高了访问效率, 降低了访问时延。  The embodiment of the invention provides a method, a device and a service system for providing service information, which solves the dilemma that the existing enterprise network architecture cannot rely on the ESB to carry out stateful services, improves access efficiency, and reduces access delay.
本发明实施例提供一种面向服务的体系结构服务系统, 包括: 企业服务 总线、 服务提供装置、 信息緩存装置和服务请求装置;  An embodiment of the present invention provides a service oriented architecture service system, including: an enterprise service bus, a service providing device, an information caching device, and a service requesting device;
所述企业服务总线分别与所述服务提供装置和所述服务请求装置连接, 用于接收到所述服务请求装置发送的申请服务请求后, 将所述申请服务请求 发送给所述服务提供装置;  The enterprise service bus is respectively connected to the service providing device and the service requesting device, and configured to send the application service request to the service providing device after receiving the application service request sent by the service requesting device;
所述企业服务总线还与所述信息緩存装置连接, 所述信息緩存装置, 用 于通过所述企业服务总线接收并保存所述服务提供装置发送的所述申请服务 请求的状态信息; 所述申请服务请求的状态信息用于表示所述服务提供装置 对所述申请服务请求的处理状态;  The enterprise service bus is further connected to the information cache device, and the information cache device is configured to receive and save state information of the application service request sent by the service providing device by using the enterprise service bus; The status information of the service request is used to indicate a processing status of the application service request by the service providing apparatus;
所述信息緩存装置, 还用于通过所述企业服务总线接收所述服务请求装 置发送的用于获取所述申请服务请求的状态信息的获取服务状态请求, 根据 所述获取服务状态请求, 将所述申请服务请求的状态信息通过所述企业服务 总线发送给所述服务请求装置。  The information cache device is further configured to receive, by using the enterprise service bus, an acquisition service status request sent by the service requesting apparatus to obtain status information of the application service request, according to the acquiring a service status request, Status information describing the application service request is sent to the service requesting device via the enterprise service bus.
本发明实施例提供一种面向服务的体系结构服务系统, 包括: 企业服务 总线、 服务提供装置、 信息緩存装置和服务请求装置;  An embodiment of the present invention provides a service oriented architecture service system, including: an enterprise service bus, a service providing device, an information caching device, and a service requesting device;
所述信息緩存装置与所述企业服务总线连接, 所述企业服务总线与所述 服务提供装置连接; 所述信息緩存装置, 用于通过所述企业服务总线接收所 述服务提供装置发送的、 对所述服务请求装置的请求进行控制的控制信息后 , 保存所述控制信息; 所述企业服务总线还与所述服务请求装置连接, 用于接收所述服务请求 装置发送的请求, 并从所述信息緩存装置中获取所述请求的控制信息, 对所 述请求进行控制。 The information cache device is connected to the enterprise service bus, and the enterprise service bus is connected to the service providing device. The information cache device is configured to receive, by using the enterprise service bus, the service provider, After the service requesting device requests the control information to be controlled, the control information is saved; The enterprise service bus is further connected to the service requesting device, configured to receive a request sent by the service requesting device, and obtain the requested control information from the information cache device to control the request.
本发明实施例还提供一种信息緩存装置, 包括: 信息接收模块、 信息获 取模块、 信息发送模块和存储模块;  An embodiment of the present invention further provides an information cache apparatus, including: an information receiving module, an information acquiring module, an information sending module, and a storage module;
所述信息接收模块, 用于通过企业服务总线接收服务提供装置发送的对 申请服务请求的状态信息, 并将申请服务请求的状态信息保存至存储模块, 并通过企业服务总线接收服务请求装置发送的获取服务状态请求; 申请服务 请求的状态信息为服务提供装置对申请服务请求的处理状态; 申请服务请求 的状态信息包括申请服务请求的服务标识;  The information receiving module is configured to receive status information of the application service request sent by the service providing device by using the enterprise service bus, and save the status information of the application service request to the storage module, and receive the service request device sent by using the enterprise service bus. Obtaining a service status request; status information of the application service request is a processing status of the service providing device for the application service request; and status information of the application service request includes a service identifier for requesting the service request;
所述信息获取模块, 用于根据所述信息接收模块接收到的获取服务状态 请求中携带的申请服务请求的服务标识, 在所述存储模块中获取申请服务请 求的状态信息;  The information obtaining module is configured to obtain, according to the service identifier of the application service request carried in the service status request received by the information receiving module, the status information of the application service request in the storage module;
所述信息发送模块, 用于在所述信息获取模块获取到状态信息后, 通过 所述企业服务总线向所述服务请求装置发送响应信息, 所述响应信息包括申 请服务请求的状态信息和服务标识;  The information sending module is configured to send, after the information acquiring module acquires the status information, the response information to the service requesting apparatus by using the enterprise service bus, where the response information includes status information and service identifier of the application service request ;
所述存储模块, 用于存储所述信息接收模块接收到的对申请服务请求的 状态信息。  The storage module is configured to store status information about the request service request received by the information receiving module.
本发明实施还提供一种企业服务总线, 包括: 服务请求适配模块、 服务 提供适配模块和信息緩存适配模块;  The implementation of the present invention further provides an enterprise service bus, including: a service request adaptation module, a service providing adaptation module, and an information cache adaptation module;
所述服务请求适配模块, 用于接收服务请求装置发送的申请服务请求, 并将所述申请服务请求发送到服务提供装置, 还用于接收所述服务请求装置 发送的获取服务状态请求;  The service request adaptation module is configured to receive an application service request sent by the service requesting device, and send the application service request to the service providing device, and configured to receive an acquisition service status request sent by the service requesting device;
所述服务提供适配模块, 用于在所述服务提供装置对所述申请服务请求 处理后, 接收所述服务提供装置发送的所述申请服务请求的状态信息; 所述信息緩存适配模块, 用于将所述服务提供适配模块接收到的状态信 息发送给信息緩存装置; 在所述信息緩存装置根据所述获取服务状态请求中 携带的所述申请服务请求的服务标识, 获取到所述申请服务请求的状态信息 后, 接收所述信息緩存装置发送的服务状态响应信息, 所述服务状态响应信 息包括所述申请服务请求的状态信息。 The service providing an adaptation module, configured to receive status information of the application service request sent by the service providing apparatus after the service providing apparatus processes the application service request; The information cache adaptation module is configured to send the status information received by the service providing adaptation module to the information cache device, where the information cache device is configured to perform the service request according to the acquired service status request. The service identifier, after obtaining the status information of the application service request, receiving the service status response information sent by the information cache device, where the service status response information includes status information of the application service request.
本发明实施例还提供一种提供服务信息的方法, 包括:  The embodiment of the invention further provides a method for providing service information, including:
在服务提供装置对服务请求装置发送申请服务请求处理后, 通过企业服 务总线接收并保存所述服务提供装置发送的所述申请服务请求的状态信息申 请服务请求的状态信息; 所述申请服务请求的状态信息表示所述服务提供装 置对所述申请服务请求的处理状态; 所述申请服务请求的状态信息包括申请 服务请求的服务标识;  After the service providing device sends the application service request processing to the service requesting device, the status information of the status information requesting service request of the application service request sent by the service providing device is received and saved through the enterprise service bus; The status information indicates a processing status of the application service request by the service providing apparatus; and the status information of the application service request includes a service identifier for requesting a service request;
通过所述企业服务总线接收到所述服务请求装置发送的获取服务状态请 求, 根据所述获取服务状态请求中携带的申请服务请求的服务标识, 获取所 述保存的申请服务请求的状态信息;  Receiving, by the enterprise service bus, the service status request sent by the service requesting device, and obtaining the status information of the saved application service request according to the service identifier of the application service request carried in the acquiring the service status request;
通过所述企业服务总线向所述服务请求装置发送包括所述申请服务请求 的状态信息响应信息申请服务请求的状态信息。  Status information including a status information response information request service request of the application service request is transmitted to the service requesting device via the enterprise service bus.
本发明实施例提供服务信息的方法、 装置及服务系统, 在 SOA架构中增 加了与 ESB连接的信息緩存装置,使信息緩存装置保存服务提供装置返回的对 申请服务请求的处理状态。从而使 ESB通过信息緩存装置获取申请服务请求的 处理状态, 提供给服务请求装置。 同时, 信息緩存装置保存服务提供装置发 送的控制信息,从而使 ESB可从信息緩存装置中获取控制信息,对服务请求装 置的请求进行控制。由于服务请求装置通过 ESB高速通道访问信息緩存装置中 服务状态信息, 降低了服务请求装置的访问延迟, 提高了系统的性能。 由于 与 ESB连接的信息緩存装置具有存储功能, 实现了依赖 ESB开展有状态业务的 目的。 附图说明 The embodiment of the present invention provides a method, a device, and a service system for service information. In the SOA architecture, an information cache device connected to the ESB is added, so that the information cache device saves the processing status of the application service request returned by the service providing device. Thereby, the ESB acquires the processing status of the application service request through the information buffering device, and provides it to the service requesting device. At the same time, the information cache device saves the control information sent by the service providing device, so that the ESB can acquire the control information from the information cache device and control the request of the service requesting device. Since the service requesting device accesses the service state information in the information cache device through the ESB high speed channel, the access delay of the service requesting device is reduced, and the performance of the system is improved. Since the information cache device connected to the ESB has a storage function, the purpose of relying on the ESB to carry out stateful services is realized. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明第一实施例提供的 SOAI良务系统结构示意图;  1 is a schematic structural diagram of an SOAI service system according to a first embodiment of the present invention;
图 2为本发明第二实施例提供的信息緩存装置结构示意图;  2 is a schematic structural diagram of an information cache apparatus according to a second embodiment of the present invention;
图 3为本发明第三实施例提供的信息緩存装置结构示意图;  3 is a schematic structural diagram of an information cache apparatus according to a third embodiment of the present invention;
图 4为本发明第四实施例提供的企业服务总线结构示意图;  4 is a schematic structural diagram of an enterprise service bus according to a fourth embodiment of the present invention;
图 5为本发明第五实施例提供的企业服务总线结构示意图  FIG. 5 is a schematic structural diagram of an enterprise service bus according to a fifth embodiment of the present invention;
图 6为本发明第六实施例提供的提供服务信息的方法流程图;  FIG. 6 is a flowchart of a method for providing service information according to a sixth embodiment of the present invention;
图 7为本发明第七实施例提供的提供服务信息的方法实施例流程图; 图 8A为本发明第八实施例提供的提供服务信息的方法流程图;  FIG. 7 is a flowchart of a method for providing service information according to a seventh embodiment of the present invention; FIG. 8A is a flowchart of a method for providing service information according to an eighth embodiment of the present invention;
图 8B为本发明第八实施例提供的提供服务信息的方法所应用的服务系统 结构示意图;  8B is a schematic structural diagram of a service system applied to a method for providing service information according to an eighth embodiment of the present invention;
图 9为本发明第九实施例提供的提供服务信息的方法流程图;  FIG. 9 is a flowchart of a method for providing service information according to a ninth embodiment of the present invention;
图 10为本发明第十实施例提供的提供服务信息的方法流程图。 具体实施方式  FIG. 10 is a flowchart of a method for providing service information according to a tenth embodiment of the present invention. detailed description
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。 图 1为本发明第一实施例提 供的 SOA服务系统结构示意图, 如图 1所示, 本实施例 SOA^务系统包括: 服 务请求装置 10、 信息緩存装置 20、 服务提供装置 30和企业服务总线 40。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is a partial embodiment of the invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention. 1 is a schematic structural diagram of an SOA service system according to a first embodiment of the present invention. As shown in FIG. 1, the SOA system of the present embodiment includes: The request device 10, the information cache device 20, the service providing device 30, and the enterprise service bus 40.
企业服务总线 40分别与服务提供装置 30、 服务请求装置 10和信息緩存装 置 20连接,  The enterprise service bus 40 is connected to the service providing device 30, the service requesting device 10, and the information cache device 20, respectively.
基于图 1所示的系统结构, 信息緩存装置 20可存储服务提供装置 30发送的 状态信息, 也可存储服务提供装置 30发送的控制信息, 另外也可用于同时存 储状态信息和控制信息。  Based on the system configuration shown in Fig. 1, the information cache device 20 can store the status information transmitted by the service providing device 30, and can also store the control information transmitted by the service providing device 30, and can also be used to simultaneously store the status information and the control information.
用信息緩存装置 20存储状态信息时 , 各装置的功能如下:  When the status information is stored by the information buffer device 20, the functions of each device are as follows:
企业服务总线 40用于接收到服务请求装置 10发送的申请服务请求后, 将 申请服务请求发送给服务提供装置 30 , 由服务提供装置 30对该申请服务请求 进行处理。 信息緩存装置 20用于通过企业服务总线 40接收服务提供装置 30发 送的申请服务请求的状态信息, 并将申请服务请求的状态信息保存至存储区。 申请服务请求的状态信息用于表示服务提供装置对申请服务请求的处理状 态。 其中, 上述存储区可为高速緩存区, 具有查询、 删除信息等功能。  The enterprise service bus 40 is configured to transmit an application service request to the service providing device 30 after receiving the application service request sent by the service requesting device 10, and the service providing device 30 processes the application service request. The information cache device 20 is for receiving status information of the application service request transmitted from the service providing device 30 via the enterprise service bus 40, and saving the status information of the application service request to the storage area. The status information of the application service request is used to indicate the processing status of the service providing device for the application service request. The storage area may be a cache area, and has the functions of querying, deleting information, and the like.
具体地, 企业服务总线 40接收到服务请求装置 10发送的申请服务请求后, 将该申请服务请求发送给相应的服务提供装置。 服务提供装置接收到企业服 务总线转发的申请服务请求, 对该申请服务请求进行处理后, 将该申请服务 请求的处理状态信息通过企业服务总线 40发送给信息緩存装置 20。 信息緩存 装置 20将接收到的申请服务请求的处理状态信息保存至存储区。  Specifically, after receiving the application service request sent by the service requesting device 10, the enterprise service bus 40 transmits the application service request to the corresponding service providing device. The service providing device receives the application service request forwarded by the enterprise service bus, and after processing the application service request, transmits the processing status information of the application service request to the information cache device 20 through the enterprise service bus 40. The information cache device 20 saves the processing status information of the received application service request to the storage area.
信息緩存装置 20 , 用于通过企业服务总线 40接收服务请求装置 10发送的 获取服务状态请求, 信息緩存装置服务请求装置将申请服务请求的处理状态 信息通过企业服务总线发送给服务请求装置。  The information cache device 20 is configured to receive an acquisition service status request sent by the service requesting device 10 through the enterprise service bus 40, and the information cache device service requesting device transmits the processing status information of the application service request to the service requesting device via the enterprise service bus.
具体地, 企业服务总线 40接收到服务请求装置 10发送的获取服务状态请 求后, 将该获取服务状态请求发送给信息緩存装置 20 , 信息緩存装置 20从存 储区中查找该获取服务状态请求对应的申请服务请求的服务处理状态信息, 信息緩存装置 20将该状态信息通过企业服务总线发送给服务请求装置。 信息 緩存装置 20中保存的状态信息, 可通过 ESB编排业务时精确控制, 信息緩存装 置也可每隔固定的时间进行删除。 此外, 为防止断电后信息丟失, 也可设置 持久化保存策略将上述状态信息保存至持久化信息库中。 Specifically, after receiving the service status request sent by the service requesting device 10, the enterprise service bus 40 sends the acquired service status request to the information cache device 20, and the information cache device 20 searches the storage area for the corresponding service status request. The service processing status information of the application service request, the information cache device 20 transmits the status information to the service requesting device via the enterprise service bus. Information The state information stored in the cache device 20 can be precisely controlled when the ESB orchestrate the service, and the information cache device can also be deleted at regular intervals. In addition, to prevent information loss after power failure, a persistent save policy can also be set to save the above status information to the persistent information base.
由于状态信息统一存储在信息緩存装置中, 服务提供装置无需緩存服务 的状态信息, 降低了开发难度, 同时提高了状态信息的安全性和可靠性, 得 以开展更为灵活的业务。  Since the state information is uniformly stored in the information cache device, the service providing device does not need to cache the state information of the service, which reduces the development difficulty, improves the security and reliability of the state information, and enables a more flexible service.
用信息緩存装置 20存储控制信息时 , 各装置的功能如下:  When the information cache device 20 stores control information, the functions of each device are as follows:
信息緩存装置 20, 用于通过企业服务总线 40接收服务提供装置 30发送的、 对服务请求装置 10的请求进行控制的控制信息后, 保存控制信息。 企业服务 总线 40 , 用于接收服务请求装置 10发送的请求, 并从信息緩存装置 20中获取 该请求的控制信息, 对该请求进行控制。  The information cache device 20 is configured to store the control information for controlling the request of the service requesting device 10 transmitted by the service providing device 30 through the enterprise service bus 40, and then save the control information. The enterprise service bus 40 is configured to receive a request sent by the service requesting device 10, and obtain control information of the request from the information cache device 20, and control the request.
例如, 服务提供装置事先将有关对服务请求装置的请求进行控制的控制 信息, 保存在信息緩存装置中。 在服务请求装置通过企业服务总线发起服务 请求时, 企业服务总线在信息緩存装置中获取有关该服务请求的控制信息, 根据该控制信息对该服务请求进行控制 (例如, 根据控制信息向服务提供装 置转发该服务请求, 或者丟弃该服务请求), 从而实现 ESB对各种服务的业务 编排和控制。  For example, the service providing device saves control information on the request for the service requesting device in advance in the information cache device. When the service requesting device initiates a service request through the enterprise service bus, the enterprise service bus acquires control information about the service request in the information cache device, and controls the service request according to the control information (for example, according to the control information to the service providing device) Forwarding the service request, or discarding the service request), thereby implementing ESB service scheduling and control of various services.
为提高企业服务总线与信息緩存装置之间的访问速率, 企业服务总线 40 可通过与信息緩存装置 20的接口 (例如, 接入适配器) 向信息緩存装置发送 信息或接收来自信息緩存装置的信息。 例如, 企业服务总线 40向信息緩存装 置 20发送查询信息、 插入信息、 删除信息等请求, 以访问信息緩存装置 20中 信息。 相应地, 信息緩存装置 20可通过与企业服务总线 40的接口 (例如, 接 入适配器) , 与企业服务总线进行信息交互。  To increase the access rate between the enterprise service bus and the information caching device, the enterprise service bus 40 can transmit information to or receive information from the information caching device through an interface with the information caching device 20 (e.g., an access adapter). For example, the enterprise service bus 40 sends a request for query information, insertion information, deletion information, etc. to the information cache device 20 to access information in the information cache device 20. Accordingly, the information caching device 20 can interact with the enterprise service bus via an interface with the enterprise service bus 40 (e.g., an access adapter).
本发明实施例 SOA^务系统,在 SOA架构中增加了与 ESB连接的信息緩存 装置, 信息緩存装置保存服务提供装置返回的对申请服务请求的处理状态。 从而使 ESB通过信息緩存装置获取申请服务请求的处理状态,提供给服务请求 装置。由于服务请求装置可以通过 ESB高速通道访问信息緩存装置中服务状态 信息, 降低了服务请求装置的访问延迟, 提高了系统的性能。 进一步, ESB 还可从信息緩存装置中获取对申请服务请求进行控制的控制信息, 从而实现 ESB对服务的智能控制。 由于与 ESB连接的信息緩存装置具有存储功能, 实现 了依赖 ESB开展有状态业务的目的。 In the SOA system of the present invention, an information cache device connected to the ESB is added in the SOA architecture, and the information cache device stores the processing status of the request service request returned by the service providing device. Thereby, the ESB acquires the processing status of the request service request through the information cache device, and provides it to the service requesting device. Since the service requesting device can access the service state information in the information cache device through the ESB high-speed channel, the access delay of the service requesting device is reduced, and the performance of the system is improved. Further, the ESB can also obtain control information for controlling the request for service from the information cache device, thereby implementing intelligent control of the service by the ESB. Since the information cache device connected to the ESB has a storage function, the purpose of relying on the ESB to carry out stateful services is realized.
图 2为本发明第二实施例提供的信息緩存装置结构示意图。 图 2所示的信 息緩存装置可作为图 1中所示的信息緩存装置的实施例。 如图 2所示, 本实施 例提供的信息緩存装置包括: 信息接收模块 201信息、 获取模块 202和信息发 送模块 203以及存储模块 204。  FIG. 2 is a schematic structural diagram of an information cache apparatus according to a second embodiment of the present invention. The information buffering device shown in Fig. 2 can be used as an embodiment of the information buffering device shown in Fig. 1. As shown in FIG. 2, the information cache apparatus provided in this embodiment includes: an information receiving module 201 information, an obtaining module 202, an information sending module 203, and a storage module 204.
信息接收模块 201 , 用于通过企业服务总线接收服务提供装置发送的对申 请服务请求的状态信息, 并将申请服务请求的状态信息保存至存储模块 204 , 并通过企业服务总线接收服务请求装置发送的获取服务状态请求; 申请服务 请求的状态信息为服务提供装置对申请服务请求的处理状态; 申请服务请求 的状态信息包括申请服务请求的服务标识。  The information receiving module 201 is configured to receive status information of the application service request sent by the service providing device by using the enterprise service bus, and save the status information of the application service request to the storage module 204, and receive the service request device sent by the enterprise service bus. Obtaining a service status request; status information of the application service request is a processing status of the service providing device for the application service request; and status information of the application service request includes a service identifier for requesting the service request.
信息获取模块 202 , 用于根据信息接收模块 201接收到的获取服务状态请 求中携带的申请服务请求的服务标识, 在存储模块 204中获取申请服务请求的 状态信息。  The information obtaining module 202 is configured to obtain the status information of the application service request in the storage module 204 according to the service identifier of the application service request carried in the service status request received by the information receiving module 201.
信息发送模块 203 , 用于在信息获取模块 202获取到状态信息后, 通过企 业服务总线向服务请求装置发送响应信息, 响应信息包括申请服务请求的状 态信息和服务标识。  The information sending module 203 is configured to send, after the information acquiring module 202 obtains the status information, the response information to the service requesting apparatus by using the enterprise service bus, where the response information includes the status information of the application service request and the service identifier.
存储模块 204 , 用于存储信息接收模块 201接收到的对申请服务请求的状 态信息。  The storage module 204 is configured to store status information received by the information receiving module 201 for the request for service.
具体地, 信息接收模块 201在服务提供装置对服务请求装置发送的申请服 务请求处理后, 通过企业服务总线接收服务提供装置发送的申请服务请求的 状态信息, 并将申请服务请求的状态信息保存至存储模块 204。 Specifically, the information receiving module 201 receives the application service request sent by the service providing device through the enterprise service bus after the service providing device processes the application service request sent by the service requesting device. The status information is saved to the storage module 204 for status information of the application service request.
信息接收模块 201在通过企业服务总线接收到服务请求装置发送的获取 服务状态请求时, 信息获取模块 202根据获取服务状态请求中携带的上述申请 服务请求的服务标识, 在存储模块 204中获取信息接收模块 201接收到的上述 申请服务请求的状态信息。 信息发送模块 203在信息获取模块 202获取申请服 务请求的状态信息时, 通过企业服务总线向服务请求装置发送响应信息, 响 应信息包括信息获取模块 202从存储模块 204申获取到的申请服务请求的状态 信息和服务标识。  When the information receiving module 201 receives the service status request sent by the service requesting device through the enterprise service bus, the information acquiring module 202 acquires the information receiving in the storage module 204 according to the service identifier of the application service request carried in the service status request. The status information of the above application service request received by the module 201. The information sending module 203 sends the response information to the service requesting device through the enterprise service bus when the information acquiring module 202 acquires the status information of the application service request, and the response information includes the status of the application service request acquired by the information acquiring module 202 from the storage module 204. Information and service identification.
为实现 ESB根据服务提供装置的服务控制策略对相关服务进行智能控制, 信息接收模块 201, 进一步用于通过企业服务总线接收服务提供装置发送的、 对服务请求装置的请求进行控制的控制信息, 并将控制信息保存至存储模块 204中, 以使企业服务总线获取控制信息后, 根据控制信息对服务请求装置的 请求进行控制。  The information receiving module 201 is further configured to receive, by using an enterprise service bus, control information that is sent by the service providing device and controls the request of the service requesting device, by using the service control policy of the service providing device to perform intelligent control on the related service. The control information is saved to the storage module 204, so that after the enterprise service bus acquires the control information, the request of the service requesting device is controlled according to the control information.
信息接收模块 201 , 进一步还用于在企业服务总线接收到服务请求装置发 送的申请服务请求后, 接收企业服务总线发送的用于获取对所述申请服务请 求的控制信息的获取控制信息请求; 获取控制信息请求包括申请服务请求的 月良务标识。  The information receiving module 201 is further configured to: after the enterprise service bus receives the application service request sent by the service requesting device, receive an acquisition control information request sent by the enterprise service bus for acquiring control information for the application service request; The control information request includes a monthly service identification requesting a service request.
信息发送模块 203 , 进一步用于根据所述申请服务请求的服务标识在所述 保存模块查询到对申请服务请求的控制信息时, 向企业服务总线发送对申请 服务请求的控制信息, 以使企业服务总线根据控制信息对申请服务请求进行 控制。  The information sending module 203 is further configured to: when the storage module queries the control information for requesting the service request according to the service identifier of the application service request, send, to the enterprise service bus, control information for requesting the service request, so that the enterprise service The bus controls the request for service based on the control information.
进一步, 存储模块 204 , 还用于存储信息接收模块 201接收到的控制信息。 具体地, 服务提供装置将对服务请求装置的请求进行控制的控制信息发 送给企业服务总线, 信息接收模块 201通过企业服务总线接收控制信息, 并将 控制信息保存至存储模块 204。 信息接收模块 201在企业服务总线接收到服务 请求装置发送的申请服务请求后, 接收企业服务总线发送的获取控制信息请 求。 信息发送模块 203在信息接收模块 201接收到获取控制信息请求后, 根据 申请服务请求的服务标识在存储模块 204查询到对申请服务请求的控制信息 时, 向企业服务总线发送对申请服务请求的控制信息, 以使企业服务总线根 据控制信息对申请服务请求进行控制。 Further, the storage module 204 is further configured to store the control information received by the information receiving module 201. Specifically, the service providing device transmits control information for controlling the request of the service requesting device to the enterprise service bus, and the information receiving module 201 receives the control information through the enterprise service bus, and saves the control information to the storage module 204. The information receiving module 201 receives the service on the enterprise service bus After requesting the service request sent by the device, the request for obtaining the control information sent by the enterprise service bus is received. After receiving the request for obtaining the control information, the information sending module 203 sends a control request for the service request to the enterprise service bus when the storage module 204 queries the control information for the request service request according to the service identifier of the application service request. Information so that the Enterprise Service Bus controls the request for service based on the control information.
为提高访问速率, 上述存储模块 204可为高速緩存区。 如图 3所示, 为提 高服务系统的可靠性, 存储模块 204包括高速緩存区、 持久化信息库和持久化 保存模块, 从企业服务总线接收到的信息直接保存至高速緩存区中。 持久化 保存模块用于根据持久化保存策略, 将高速緩存区中的信息保存至持久化信 息库, 以在系统断电后不会丟失信息。  To increase the access rate, the storage module 204 can be a cache area. As shown in FIG. 3, to improve the reliability of the service system, the storage module 204 includes a cache area, a persistent information base, and a persistent storage module, and the information received from the enterprise service bus is directly saved to the cache area. The persistence save module is used to save the information in the cache area to the persistent information base according to the persistence save policy so that no information is lost after the system is powered off.
本实施例信息緩存装置通过企业服务总线接收服务提供装置发送的有关 申请服务请求的状态信息。 服务请求装置在发出获取服务状态请求后, 企业 服务总线可直接从信息緩存装置中获取到申请服务请求的状态信息, 从而, 服务提供装置无需保存申请服务请求的状态信息, 减轻了服务提供装置的负 荷。 由于服务请求装置通过 ESB高速通道访问信息緩存装置中服务状态信息, 降低了服务请求装置的访问延迟,提高了系统的性能, 同时为依赖 ESB开展有 状态业务提供了条件。进一步, ESB还可从信息緩存装置中获取对服务请求装 置的请求进行控制的控制信息, 从而对服务请求装置进行智能控制。  The information cache device of the embodiment receives the status information about the application service request sent by the service providing device via the enterprise service bus. After the service requesting device issues the request for obtaining the service status, the enterprise service bus can directly obtain the status information of the application service request from the information cache device, so that the service providing device does not need to save the status information of the application service request, thereby reducing the service providing device. load. Since the service requesting device accesses the service state information in the information cache device through the ESB high-speed channel, the access delay of the service requesting device is reduced, the performance of the system is improved, and conditions for the stateful service relying on the ESB are provided. Further, the ESB can also acquire control information for controlling the request of the service requesting device from the information cache device, thereby intelligently controlling the service requesting device.
图 4为本发明第四实施例提供的企业服务总线结构示意图, 图 4所示企业 服务总线可作为图 1中所示企业服务总线的实施例。 如图 4所示, 本实施例包 括: 服务请求适配模块 401、 服务提供适配模块 402和信息緩存适配模块 403。  4 is a schematic structural diagram of an enterprise service bus according to a fourth embodiment of the present invention. The enterprise service bus shown in FIG. 4 can be used as an embodiment of the enterprise service bus shown in FIG. 1. As shown in FIG. 4, the embodiment includes: a service request adaptation module 401, a service providing adaptation module 402, and an information cache adaptation module 403.
服务请求适配模块 401 , 用于接收服务请求装置发送的申请服务请求, 并 将申请服务请求发送到服务提供装置; 还用于接收到服务请求装置发送的获 取服务状态请求。  The service request adaptation module 401 is configured to receive an application service request sent by the service requesting device, and send the application service request to the service providing device, and is further configured to receive the obtained service status request sent by the service requesting device.
服务提供适配模块 402 , 用于在服务提供装置对申请服务请求处理后, 接 收服务提供装置发送的申请服务请求的状态信息。 The service providing adaptation module 402 is configured to: after the service providing device processes the request service request, The status information of the application service request sent by the service providing device.
信息緩存适配模块 403, 用于将服务提供适配模块 402接收到的状态信息 发送给信息緩存装置; 在信息緩存装置根据获取服务状态请求中携带的申请 服务请求的服务标识, 获取到申请服务请求的状态信息后, 接收信息緩存装 置发送的服务状态响应信息, 服务状态响应信息包括申请服务请求的状态信 息。  The information cache adaptation module 403 is configured to send the status information received by the service providing adaptation module 402 to the information cache device. The information cache device obtains the application service according to the service identifier of the application service request carried in the acquisition service status request. After the requested status information, the service status response information sent by the information cache device is received, and the service status response information includes status information of the request service request.
ESB通过服务请求适配模块 401与服务请求装置进行交互, 即接收服务请 求装置发送的申请服务请求和获取服务状态请求。 ESB通过服务提供适配模块 402与服务提供装置进行交互, 即接收服务提供装置送的申请服务请求的状态 信息。 ESB通过信息緩存适配模块 403与信息緩存装置进行交互, 即和向信息 緩存装置发送申请服务请求的状态信息, 并接收信息緩存装置发送的服务状 态响应信息。  The ESB interacts with the service requesting device through the service request adaptation module 401, that is, receives an application service request and a service status request sent by the service requesting device. The ESB interacts with the service providing device through the service providing adaptation module 402, that is, receives status information of the application service request sent by the service providing device. The ESB interacts with the information cache device through the information cache adaptation module 403, that is, sends status information requesting the service request to the information cache device, and receives the service status response information sent by the information cache device.
为实现 ESB根据服务提供装置的服务控制策略对相关服务进行智能控制, 如图 5所示, 在图 4对应方案基础上, 本实施例还包括: 申请服务请求控制模 块 404。  In order to implement the intelligent control of the related service by the ESB according to the service control policy of the service providing device, as shown in FIG. 5, based on the corresponding solution of FIG. 4, the embodiment further includes: an application service request control module 404.
服务提供适配模块 402 , 还用于接收服务提供装置发送的、 对服务请求适 配模块 401接收到的申请服务请求进行控制的控制信息。  The service providing adaptation module 402 is further configured to receive control information that is sent by the service providing device and that controls the application service request received by the service request adaptation module 401.
信息緩存适配模块 403 , 还用于将服务提供适配模块 402接收到的控制信 息发送给信息緩存装置, 还用于向信息緩存装置发送获取控制信息请求, 并 在信息緩存装置根据获取控制信息请求查询到对申请服务请求的控制信息 时, 接收信息緩存装置发送的对申请服务请求的控制信息。 其中, 获取控制 信息请求用于获取对申请服务请求的控制信息, 获取控制信息请求包括申请 服务请求的服务标识;  The information cache adaptation module 403 is further configured to send the control information received by the service providing adaptation module 402 to the information cache device, and is further configured to send the acquisition control information request to the information cache device, and obtain the control information according to the information cache device. When requesting to query the control information for requesting the service request, the control information sent by the information cache device to the request service request is received. The obtaining control information request is used to obtain control information for requesting a service request, and the obtaining control information request includes a service identifier for requesting the service request;
申请服务请求控制模块 404 , 用于根据信息緩存适配模块 403緩存的对申 请服务请求的控制信息, 对申请服务请求进行控制。 具体地, 服务提供适配模块 402接收到服务提供装置发送的、 对申请服务 请求进行控制的控制信息后, 将控制信息发送给信息緩存装置。 服务请求适 配模块 401在接收到服务请求装置发送的申请服务请求后, 向信息緩存装置发 送获取控制信息请求。 申请服务请求控制模块 404在服务请求适配模块 401向 信息緩存装置发送获取控制信息请求后, 信息緩存装置根据申请服务请求的 服务标识查询到对申请服务请求的控制信息时, 接收信息緩存装置发送的对 申请服务请求的控制信息, 并根据控制信息对申请服务请求进行控制。 The application service request control module 404 is configured to control the application service request according to the control information of the application service request buffered by the information cache adaptation module 403. Specifically, after receiving the control information sent by the service providing apparatus and controlling the application service request, the service providing adaptation module 402 sends the control information to the information cache apparatus. After receiving the application service request sent by the service requesting device, the service request adaptation module 401 sends an acquisition control information request to the information cache device. The application service request control module 404, after the service request adaptation module 401 sends the acquisition control information request to the information cache device, and the information cache device queries the control information for the application service request according to the service identifier of the application service request, the receiving information cache device sends The control information for the application service request, and the application service request is controlled according to the control information.
本实施例企业服务总线, 将服务请求装置发送的申请服务请求发送给服 务提供装置, 并将服务提供装置发送的该申请服务请求的状态信息转发给信 息緩存装置, 由信息緩存装置保存服务状态信息。 进一步, 企业服务总线还 将服务提供装置发送的控制信息转发给信息緩存装置, 因此, ESB可直接从信 息緩存装置中获取有关申请服务请求的状态信息发送给服务请求装置, 还可 以在接收到服务请求装置发送的请求后, 根据信息緩存装置中获取的控制信 息, 对服务请求装置的请求进行控制。 从而, 本实施例提高了服务请求装置 的访问延迟,减轻了服务提供装置的负荷, 为依赖 ESB开展有状态业务提供了 条件。  In this embodiment, the enterprise service bus sends an application service request sent by the service requesting device to the service providing device, and forwards the status information of the application service request sent by the service providing device to the information cache device, and the information cache device saves the service state information. . Further, the enterprise service bus forwards the control information sent by the service providing device to the information cache device. Therefore, the ESB can directly obtain the status information about the application service request from the information cache device and send the status information to the service request device, and can also receive the service. After requesting the request sent by the device, the request of the service requesting device is controlled according to the control information acquired in the information cache device. Thus, the present embodiment improves the access delay of the service requesting device, reduces the load on the service providing device, and provides conditions for relying on the ESB to carry out stateful services.
图 6为本发明第六实施例提供的提供服务信息的方法流程图。 本实施例的 执行主体可为图 1或图 2中所示的信息緩存装置, 即从信息緩存装置角度对本 发明实施例提供服务信息的方法的技术方案进行说明。 如图 6所示, 本实施例 包括:  FIG. 6 is a flowchart of a method for providing service information according to a sixth embodiment of the present invention. The executor of this embodiment may be the information cache device shown in FIG. 1 or FIG. 2, that is, the technical solution of the method for providing service information according to the embodiment of the present invention is described from the perspective of the information cache device. As shown in FIG. 6, this embodiment includes:
步骤 61 : 在服务提供装置对服务请求装置发送申请服务请求处理后, 通 过企业服务总线接收并保存服务提供装置发送的申请服务请求的状态信息; 其中, 申请服务请求的状态信息表示服务提供装置对申请服务请求的处 理状态, 申请服务请求的状态信息包括申请服务请求的服务标识。  Step 61: After the service providing device sends the application service request processing to the service requesting device, the state information of the application service request sent by the service providing device is received and saved through the enterprise service bus; wherein the status information of the application service request indicates the service providing device The processing status of the application service request, and the status information of the application service request includes the service identifier of the application service request.
ESB接收到服务请求装置发送的申请服务请求(申请服务请求表示服务请 求装置请求服务提供装置提供服务)后, 将该申请服务请求路由给服务提供 装置。 需要指出的是, 在将服务请求装置发送的申请服务请求发送给服务提 供装置的同时, ESB还可将申请服务请求发送给信息緩存装置,使信息緩存装 置保存该申请服务请求。 后续服务请求装置通过 ESB发送获取服务状态请求 后, 在服务提供装置未返回处理状态时, 信息緩存装置向服务请求装置返回 该申请服务请求的中间状态信息。 The ESB receives the application service request sent by the service requesting device (application service request indicates service request) After requesting the device to request the service providing device to provide the service, the application service request is routed to the service providing device. It should be noted that, while the application service request sent by the service requesting device is sent to the service providing device, the ESB may also send the application service request to the information cache device, so that the information cache device saves the application service request. After the subsequent service requesting apparatus transmits the acquisition service status request through the ESB, the information cache apparatus returns the intermediate status information of the application service request to the service requesting apparatus when the service providing apparatus does not return the processing status.
服务提供装置对该申请服务请求处理后, 将该申请服务请求的处理状态, 即该申请服务请求的状态信息, 发送给 ESB , 由 ESB发给信息緩存装置。 信息 緩存装置将通过 ESB接收到该申请服务请求的状态信息保存,以便服务请求装 置通过 ESB获取。  After processing the request service request, the service providing device sends the processing status of the application service request, that is, the status information of the application service request, to the ESB, and the ESB sends the information to the information cache device. The information cache device saves the status information of the request service request received by the ESB, so that the service request device acquires through the ESB.
步骤 62: 通过企业服务总线接收到服务请求装置发送的获取服务状态请 求, 根据获取服务状态请求中携带的申请服务请求的服务标识, 获取保存的 申请服务请求的状态信息;  Step 62: Receive the service status request sent by the service requesting device by using the enterprise service bus, and obtain the status information of the saved application service request according to the service identifier of the application service request carried in the service status request.
其中, 获取服务状态请求用于获取服务提供装置对申请服务请求的处理 状态。  The obtaining service status request is used to obtain a processing status of the service providing device for requesting the service request.
服务请求装置发送申请服务请求后, 向 ESB发送获取服务状态请求。 由 ESB转发给信息緩存装置。信息緩存装置接收到获取服务状态请求后,根据该 获取服务状态请求中携带的申请服务请求的服务标识, 在存储区中查询该申 请服务请求对应的服务状态信息。 如果查找到该申请服务请求的状态信息, 表示服务提供装置已对该申请服务请求装置处理过, 如果没有查找到则表明 服务提供装置还未返回该申请服务请求的处理状态。  After the service requesting device sends the request service request, it sends a request for obtaining the service status to the ESB. Forwarded by the ESB to the information cache device. After receiving the service status request, the information cache device queries the service status of the application service request in the storage area according to the service identifier of the application service request carried in the service status request. If the status information of the application service request is found, it indicates that the service providing device has processed the application service requesting device, and if not found, it indicates that the service providing device has not returned the processing status of the application service request.
步骤 63 : 通过企业服务总线向服务请求装置发送包括申请服务请求的状 态信息的响应信息。  Step 63: Send response information including status information of the request service request to the service requesting apparatus through the enterprise service bus.
信息緩存装置从存储区中获取到申请服务请求的状态信息后, 通过 ESB 向服务请求装置返回响应信息, 响应信息中包括有申请服务请求的状态信息。 服务请求装置根据申请服务请求的服务标识, 可获知响应信息中的服务状态 信息所对应的申请服务请求。 另外, 在没有获取到申请服务请求的状态信息 时, 也可向服务请求装置返回该申请服务请求的中间状态信息。 After obtaining the status information of the application service request from the storage area, the information cache device returns a response message to the service requesting device through the ESB, and the response information includes status information of the request service request. The service requesting device can obtain the application service request corresponding to the service status information in the response information according to the service identifier of the application service request. In addition, when the status information of the application service request is not acquired, the intermediate status information of the application service request may also be returned to the service requesting apparatus.
为实现 ESB根据服务提供装置的服务控制策略对相关服务进行智能控制, 在上述方案基础上, 还包括: 通过企业服务总线接收并保存服务提供装置发 送的、对申请服务请求进行控制的控制信息。 根据以上方案。 ESB在接收到服 务请求装置发送的申请服务请求后, 从信息緩存装置中获取该申请服务请求 的相关控制信息, 根据该控制信息对申请服务请求进行智能控制。  In order to implement the intelligent control of the related service by the ESB according to the service control policy of the service providing device, based on the foregoing solution, the method further includes: receiving, by the enterprise service bus, the control information sent by the service providing device and controlling the request for the service request. According to the above scheme. After receiving the application service request sent by the service requesting device, the ESB obtains relevant control information of the application service request from the information cache device, and intelligently controls the application service request according to the control information.
为提高服务系统的可靠性, 在上述方案基础上, 还包括: 提供服务信息 装置还可根据持久化保存策略, 将信息保存至持久化信息库, 以在系统断电 后不会丟失信息。  In order to improve the reliability of the service system, based on the above solutions, the method further includes: providing service information The device may also save the information to the persistent information base according to the persistent preservation policy, so that the information is not lost after the system is powered off.
本实施例提供服务信息的方法, 信息緩存装置通过企业服务总线接收服 务提供装置发送的有关申请服务请求的状态信息。 服务请求装置在发出获取 服务状态请求后, 企业服务总线可直接从信息緩存装置中获取到申请服务请 求的状态信息, 从而, 服务提供装置无需保存申请服务请求的状态信息, 减 轻了服务提供装置的负荷。由于服务请求装置通过 ESB高速通道访问信息緩存 装置中服务状态信息, 降低了服务请求装置的访问延迟, 提高了系统的性能, 同时为依赖 ESB开展有状态业务提供了条件。 进一步, ESB还可从信息緩存装 置中获取对服务请求装置的请求进行控制的控制信息, 从而对服务请求装置 进行智能控制。  The embodiment provides a method of service information, and the information cache device receives status information about an application service request sent by the service providing device via the enterprise service bus. After the service requesting device issues the request for obtaining the service status, the enterprise service bus can directly obtain the status information of the application service request from the information cache device, so that the service providing device does not need to save the status information of the application service request, thereby reducing the service providing device. load. Since the service requesting device accesses the service state information in the information caching device through the ESB high-speed channel, the access delay of the service requesting device is reduced, the performance of the system is improved, and conditions for the stateful service relying on the ESB are provided. Further, the ESB can also obtain control information for controlling the request of the service requesting device from the information cache device, thereby intelligently controlling the service requesting device.
图 7为本发明第七实施例提供的提供服务信息的方法实施例流程图, 如图 7所示, 本实施例包括:  FIG. 7 is a flowchart of a method for providing service information according to a seventh embodiment of the present invention. As shown in FIG. 7, the embodiment includes:
步骤 la: 服务请求装置通过 ESB向服务提供装置发送申请服务请求。  Step la: The service requesting device sends an application service request to the service providing device through the ESB.
申请服务请求中包括该申请服务请求的服务标识。  The application service request includes the service identifier of the application service request.
步骤 2a: ESB将申请服务请求存入信息緩存装置。 步骤 3a: ESB将该申请服务请求路由至服务提供装置进行服务处理。 Step 2a: The ESB stores the application service request in the information cache device. Step 3a: The ESB routes the application service request to the service providing device for service processing.
步骤 4a:服务请求装置通过 ESB发送携带有申请服务请求的服务标识的获 取服务状态请求。  Step 4a: The service requesting device sends an access service status request carrying the service identifier of the application service request through the ESB.
步骤 5a: ESB将获取服务状态请求转发给信息緩存装置。  Step 5a: The ESB forwards the get service status request to the information cache device.
步骤 6a: 服务提供装置将该申请服务请求的状态信息发送给 ESB。  Step 6a: The service providing device sends the status information of the application service request to the ESB.
服务提供装置处理结束,将该申请服务请求的状态信息发送给 ESB。服务 提供装置返回的申请服务请求的状态信息中包括有该申请服务请求的服务标 识。  The service providing device ends the processing, and sends the status information of the application service request to the ESB. The status information of the application service request returned by the service providing device includes the service identification of the application service request.
步骤 7a: ESB将该申请服务请求的状态信息发送给信息緩存装置。  Step 7a: The ESB sends the status information of the application service request to the information cache device.
步骤 8a: 信息緩存装置获取到该申请服务请求的状态信息后, 向 ESB发送 该申请服务请求的状态信息。  Step 8a: After obtaining the status information of the application service request, the information cache device sends the status information of the application service request to the ESB.
若服务提供装置就同一申请服务请求发送了一次以上的状态信息, 则信 息緩存装置在接收到该申请服务请求的状态信息后, 更新存储区中已有的该 申请服务请求的状态信息。  If the service providing device transmits more than one status information for the same application service request, the information cache device updates the status information of the application service request existing in the storage area after receiving the status information of the application service request.
信息緩存装置在存储区中, 根据获取服务状态请求中申请服务请求的服 务标识,获取该申请服务请求的状态信息, 并向 ESB返回该申请服务请求的状 态信息。  The information cache device obtains the status information of the application service request according to the service identifier of the application service request in the service status request, and returns the status information of the application service request to the ESB.
步骤 9a: ESB向服务请求装置发送该申请服务请求的状态信息。  Step 9a: The ESB sends the status information of the application service request to the service requesting device.
本实施例提供服务信息的方法, 信息緩存装置通过企业服务总线接收服 务提供装置发送的有关申请服务请求的状态信息。 服务请求装置在发出获取 服务状态请求后, 企业服务总线可直接从信息緩存装置中获取到申请服务请 求的状态信息, 从而, 服务提供装置无需保存申请服务请求的状态信息, 减 轻了服务提供装置的负荷。由于服务请求装置通过 ESB高速通道访问信息緩存 装置中服务状态信息, 降低了服务请求装置的访问延迟, 提高了系统的性能。  The embodiment provides a method of service information, and the information cache device receives status information about an application service request sent by the service providing device via the enterprise service bus. After the service requesting device issues the request for obtaining the service status, the enterprise service bus can directly obtain the status information of the application service request from the information cache device, so that the service providing device does not need to save the status information of the application service request, thereby reducing the service providing device. load. Since the service requesting device accesses the service status information in the information cache device through the ESB high speed channel, the access delay of the service requesting device is reduced, and the performance of the system is improved.
图 8A为本发明第八实施例提供的提供服务信息的方法流程图, 图 8B为本 发明第八实施例提供的提供服务信息的方法所应用的服务系统结构示意图。 本实施例以短信天气预报短信服务为例, 对提供服务信息的方法进行说明。 图 8B所示的 SOA^务系统包括: 应用服务网关( Application Service Gateway, 简称 ASG ) 、 ESB和终端以及信息緩存装置。 8A is a flowchart of a method for providing service information according to an eighth embodiment of the present invention, and FIG. 8B is a flowchart A schematic diagram of a service system structure applied to a method for providing service information according to an eighth embodiment of the present invention. In this embodiment, a short message weather forecast short message service is taken as an example to describe a method for providing service information. The SOA system shown in FIG. 8B includes: an Application Service Gateway (ASG), an ESB and a terminal, and an information cache device.
其中, ASG完成第三方应用的接入、认证和 SLA检查等, ASG对第三方应 用开放 ParlayX2.1接口 (或 SDP扩展的 Web Service接口 ) 。 终端为用户展现 产品, 提供门户订购等操作。 ESB完成业务编排, 消息路由分发和协议转换。  Among them, ASG completes the access, authentication and SLA check of third-party applications, and ASG opens the ParlayX2.1 interface (or SDP extended Web Service interface) for third-party applications. The terminal presents the product to the user, and provides operations such as portal ordering. The ESB completes business orchestration, message routing distribution, and protocol conversion.
其中, ESB分别与 ASG、 信息緩存装置和终端交互。 ESB和 ASG之间釆用 ParlayX 2.1接口或 SDP扩展的 Web Service接口; ESB与信息緩存装置之间的接 口釆用 RMI扩展接口。  The ESB interacts with the ASG, the information cache device, and the terminal, respectively. The ParlayX 2.1 interface or SDP extended Web Service interface is used between the ESB and the ASG; the interface between the ESB and the information cache device uses the RMI extension interface.
在 ASG通过 parlayX2.1的短信 sendSMS接口发送消息给 ASG后, ASG可以 通过 getSmsDeliveryStatus消息从信息緩存装置中获取发送短消息服务的状态 信息, 此时状态信息保存在与 ESB连接的信息緩存装置中。  After the ASG sends a message to the ASG through the sendSMS interface of parlayX2.1, the ASG can obtain the status information of the short message service from the information cache device through the getSmsDeliveryStatus message, and the status information is saved in the information cache device connected to the ESB.
在本实施例的场景中, ASG为服务请求装置, 终端为服务提供装置。 如图 8A所示, 本实施例包括:  In the scenario of this embodiment, the ASG is a service requesting device, and the terminal is a service providing device. As shown in FIG. 8A, this embodiment includes:
步骤 lb: ASG通过 ESB向终端下发天气预报短信。  Step lb: The ASG sends a weather forecast message to the terminal through the ESB.
步骤 2b: ESB将天气预报短信存入信息緩存装置。  Step 2b: The ESB stores the weather forecast message in the information cache device.
步骤 3b: ESB将天气预报短信转发给终端。  Step 3b: The ESB forwards the weather forecast message to the terminal.
步骤 4b: ASG通过 ESB查询天气预报短信发送状态。  Step 4b: The ASG queries the weather forecast message sending status through the ESB.
ASG通过 getSmsDeliveryStatus消息查询天气预报短信发送状态。  The ASG queries the status of the weather forecast message transmission through the getSmsDeliveryStatus message.
步骤 5b: ESB向信息緩存装置发送查询天气预报短信发送状态的请求。 步骤 6b: ESB接收到终端发送的天气预报短信回执。  Step 5b: The ESB sends a request for querying the status of the weather report message to the information cache device. Step 6b: The ESB receives the weather report short message sent by the terminal.
步骤 7b: ESB将天气预报短信回执保存至信息緩存装置中。  Step 7b: The ESB saves the weather report SMS receipt to the information cache device.
步骤 8b: 信息緩存装置在存储区中查询到该天气预报短信回执后, 向 ESB 发送终端的天气预报短信回执。 信息緩存装置根据 ESB发送的查询天气预报短信发送状态的请求 ,在存储 区中查询到该天气预报短信发送状态。 Step 8b: After querying the weather report short message receipt in the storage area, the information cache device sends the weather forecast SMS receipt of the terminal to the ESB. The information cache device queries the weather report short message transmission status in the storage area according to the request sent by the ESB to query the weather report short message transmission status.
步骤 9b: ESB向 ASG返回终端的天气预报短信回执。  Step 9b: The ESB returns the terminal's weather forecast SMS receipt to the ASG.
本实施例提供服务信息的方法, ASG通过 ESB向终端发送天气预报短信, 终端接收到天气预报短信息向 ESB发送天气预报短信状态回执,信息緩存装置 通过 ESB接收终端发送的天气预报短信状态回执。 ASG在发出查询天气预报短 信发送状态后, ESB从信息緩存装置中查询到天气预报短信的状态信息,从而, 终端无需保存天气预报短信状态回执。由于 ASG通过 ESB高速通道访问信息緩 存装置中天气预报短信状态回执, 降低了 ASG访问延迟, 提高了系统的性能。  In this embodiment, a method for providing service information is provided. The ASG sends a weather forecast message to the terminal through the ESB, and the terminal receives the weather report short message to send a weather report short message status receipt to the ESB, and the information cache device receives the weather report short message status receipt sent by the terminal through the ESB. After the ASG sends the query status of the weather forecast short message, the ESB queries the status information of the weather forecast message from the information cache device, so that the terminal does not need to save the weather report short message status receipt. Since the ASG accesses the weather report short message status receipt in the information cache device through the ESB high-speed channel, the ASG access delay is reduced, and the performance of the system is improved.
图 9为本发明第九实施例提供的提供服务信息的方法流程图。 本实施例主 要描述本发明实施例提供服务信息的方法中服务提供装置发送的控制信息的 技术方案。 如图 9所示, 本实施例包括:  FIG. 9 is a flowchart of a method for providing service information according to a ninth embodiment of the present invention. This embodiment mainly describes a technical solution of the control information sent by the service providing apparatus in the method for providing service information according to the embodiment of the present invention. As shown in FIG. 9, this embodiment includes:
步骤 lc: 服务提供装置将控制信息发送给 ESB。  Step lc: The service providing device sends control information to the ESB.
服务提供装置对服务请求装置的请求进行控制的控制信息, 包括对申请 服务请求进行控制的控制信息, 还可包括对获取服务状态请求进行控制的控 制信息。  The control information for controlling the request of the service requesting means by the service providing means includes control information for controlling the request for service request, and may further include control information for controlling the request for obtaining the service status.
步骤 2c: ESB将该控制信息存入信息緩存装置。  Step 2c: The ESB stores the control information in the information cache device.
步骤 3c: 服务请求装置发起申请服务请求 1。  Step 3c: The service requesting device initiates an application for service request 1.
步骤 4c: ESB根据申请服务请求 1的服务标识查询信息緩存装置中保存控 制信息。  Step 4c: The ESB saves the control information according to the service identifier query information cache device of the application service request 1.
ESB根据申请服务请求 1的服务标识, 在存储区中查找是否有关于申请服 务请求 1的控制信息。  The ESB searches for the control information of the application service request 1 in the storage area according to the service identifier of the application service request 1.
步骤 5c: ESB获取信息緩存装置发送的控制信息, 根据该控制信息, 确定 丟弃申请服务请求 1。  Step 5c: The ESB acquires control information sent by the information cache device, and determines to discard the application service request 1 according to the control information.
如果 ESB在信息緩存装置中查询到有关于申请服务请求 1的控制信息, 则 根据该控制信息确定对申请服务请求 1的处理方式。 如果 ESB没有查找到有关 申请服务请求 1的控制信息, 则按照正常方式处理申请服务请求 1。 If the ESB queries the information cache device for control information about requesting the service request 1, The processing method of the application service request 1 is determined based on the control information. If the ESB does not find the control information about the application service request 1, the application service request 1 is processed in the normal manner.
步骤 6c: 服务请求装置发起申请服务请求 2。  Step 6c: The service requesting device initiates an application service request 2.
步骤 7c: ESB根据申请服务请求 2的服务标识查询信息緩存装置中保存的 控制信息。  Step 7c: The ESB queries the control information stored in the information cache device according to the service identifier of the application service request 2.
ESB根据申请服务请求 2的服务标识, 在存储区中查找是否有关于申请服 务请求 2的控制信息。  Based on the service identifier of the application service request 2, the ESB searches for a control information about the application service request 2 in the storage area.
步骤 8c: ESB获取信息緩存装置发送的控制信息, 根据该控制信息, 确定 转发该申请服务请求 2。  Step 8c: The ESB acquires control information sent by the information cache device, and determines to forward the application service request 2 according to the control information.
步骤 9c: ESB将申请服务请求 2转发给服务提供装置。  Step 9c: The ESB forwards the request service request 2 to the service providing device.
本实施例提供服务信息的方法,信息緩存装置通过 ESB接收服务提供装置 发送的申请服务请求的控制信息。在服务请求装置发送申请服务请求时, ESB 从信息緩存装置中获取申请服务请求的控制信息, 对该申请服务请求进行控 制, 从而实现 ESB对服务的智能控制。  The embodiment provides a method for service information, and the information cache device receives the control information of the application service request sent by the service providing device through the ESB. When the service requesting device sends an application service request, the ESB obtains control information for requesting the service request from the information cache device, and controls the application service request, thereby implementing intelligent control of the service by the ESB.
图 10为本发明第十实施例提供的提供服务信息的方法流程图, 本实施例 以服务 "ASG要求 ESB上报特定接入码的上行短信,丟弃其它接入码的上行短 信" 为例, 对提供服务信息的方法进行说明。 在本实施例的场景中, ASG为 服务提供装置, 终端为服务请求装置。 如图 10所示, 本实施例包括:  10 is a flowchart of a method for providing service information according to a tenth embodiment of the present invention. In this embodiment, an "ASG requires an ESB to report an uplink short message of a specific access code and discard an uplink short message of another access code" as an example. Explain how to provide service information. In the scenario of this embodiment, the ASG is a service providing device, and the terminal is a service requesting device. As shown in FIG. 10, this embodiment includes:
步骤 Id: ASG将控制信息 "上报接入码为 6666的上行短信, 丟弃接入码 为 5555的上行短信" 发送给 ESB。  Step Id: The ASG sends the control message "Upload SMS with access code 6666 and discards uplink SMS with access code 5555" to the ESB.
步骤 2d: ESB将该控制信息存入信息緩存装置。  Step 2d: The ESB stores the control information in the information cache device.
步骤 3d: 终端釆用接入码 5555通过 ESB在 ASG上订购天气预报短信。 步骤 4d: ESB查询信息緩存装置中保存的控制信息是否包括 "接入码为 5555的上行短信" 的控制信息。  Step 3d: The terminal uses the access code 5555 to order weather forecast messages on the ASG through the ESB. Step 4d: The control information stored in the ESB query information buffering device includes the control information of the "uplink short message with access code 5555".
步骤 5d: ESB获取信息緩存装置发送的 "丟弃接入码为 5555的上行信短" 控制信息, 根据该控制信息, 丟弃终端釆用接入码 5555发送的订购天气预报 短信。 Step 5d: The ESB obtains the "uplink short message with the access code of 5555 discarded" sent by the information cache device. The control information, according to the control information, discards the subscription weather forecast message sent by the terminal using the access code 5555.
ESB在信息緩存装置中查询到 "上报含接入码为 6666的上行短信,丟弃接 入码 5555的上行短信"的控制信息。 由于上述控制信息表明 "丟弃接入码 5555 的上行短信" , 因此不将釆用接入码 5555发送的订购天气预报短信发送给 ASG。  The ESB queries the information cache device for the control information of "uploading the uplink short message with the access code 6666 and discarding the incoming short message of the access code 5555". Since the above control information indicates "discard the uplink message of the access code 5555", the subscription weather forecast message sent by the access code 5555 is not sent to the ASG.
步骤 6d: 终端釆用接入码 6666通过 ESB在 ASG上订购天气预报短信。 步骤 7d: ESB查询信息緩存装置中是否保存有"接入码为 6666的上行短信" 控制信息。  Step 6d: The terminal uses the access code 6666 to order weather forecast messages on the ASG through the ESB. Step 7d: The ESB query information cache device stores the "upstream short message with access code 6666" control information.
步骤 8d: ESB获取信息緩存装置发送的 "上报接入码为 6666的上行短信" 控制信息。  Step 8d: The ESB obtains the "uplink message with the access code of 6666" sent by the information cache device.
步骤 9d: 根据获取的控制信息, ESB向 ASG上报终端釆用接入码 6666发送 的订购天气预报短信。  Step 9d: According to the obtained control information, the ESB reports to the ASG the subscription weather forecast message sent by the terminal using the access code 6666.
本实施例提供服务信息的方法,信息緩存装置通过 ESB接收 ASG发送的对 上行短信的控制信息。在终端发送接入码为 6666的上行短信时, ESB从信息緩 存装置中获取上行短信的控制信息, 根据该控制信息确定接入码为 6666的上 行短信需向 ASG上报, 则向 ASG上报该上行短消息。 在终端发送含接入码为 5555的上行短信时, ESB从信息緩存装置中获取到 "丟弃接入码为 5555的上 行信短" 的控制信息, 确定接入码为 5555的上行短信不需向 ASG上报, 则丟 弃该上行短消息。从而, 实现了 ESB根据信息緩存装置中控制信息对服务进行 智能控制的目的。  In this embodiment, a method for providing service information is provided. The information cache device receives control information about the uplink short message sent by the ASG through the ESB. When the terminal sends the uplink short message with the access code of 6666, the ESB obtains the control information of the uplink short message from the information cache device, and determines that the uplink short message with the access code of 6666 needs to be reported to the ASG according to the control information, and reports the uplink to the ASG. short message. When the terminal sends an uplink short message with the access code of 5555, the ESB obtains the control information of "discarding the uplink short code of the access code 5555" from the information cache device, and determines that the uplink short message with the access code of 5555 is not needed. If the report is reported to the ASG, the uplink short message is discarded. Thereby, the purpose of the ESB to intelligently control the service according to the control information in the information cache device is realized.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。 A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store various program codes. It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要 求 Rights request
1、 一种面向服务的体系结构服务系统, 其特征在于, 包括: 企业服务总 线、 服务提供装置、 信息緩存装置和服务请求装置;  A service-oriented architecture service system, comprising: an enterprise service bus, a service providing device, an information cache device, and a service request device;
所述企业服务总线分别与所述服务提供装置和所述服务请求装置连接, 用于接收到所述服务请求装置发送的申请服务请求后, 将所述申请服务请求 发送给所述服务提供装置;  The enterprise service bus is respectively connected to the service providing device and the service requesting device, and configured to send the application service request to the service providing device after receiving the application service request sent by the service requesting device;
所述企业服务总线还与所述信息緩存装置连接, 所述信息緩存装置, 用 于通过所述企业服务总线接收并保存所述服务提供装置发送的所述申请服务 请求的状态信息; 所述申请服务请求的状态信息用于表示所述服务提供装置 对所述申请服务请求的处理状态;  The enterprise service bus is further connected to the information cache device, and the information cache device is configured to receive and save state information of the application service request sent by the service providing device by using the enterprise service bus; The status information of the service request is used to indicate a processing status of the application service request by the service providing apparatus;
所述信息緩存装置, 还用于通过所述企业服务总线接收所述服务请求装 置发送的用于获取所述申请服务请求的状态信息的获取服务状态请求, 根据 所述获取服务状态请求, 将所述申请服务请求的状态信息通过所述企业服务 总线发送给所述服务请求装置。  The information cache device is further configured to receive, by using the enterprise service bus, an acquisition service status request sent by the service requesting apparatus to obtain status information of the application service request, according to the acquiring a service status request, Status information describing the application service request is sent to the service requesting device via the enterprise service bus.
2、 根据权利要求 1所述面向服务的体系结构服务系统, 其特征在于, 所 述信息緩存装置, 还用于通过所述企业服务总线, 接收所述服务提供装置发 送的对所述服务请求装置的请求进行控制的控制信息; 所述企业服务总线还 用于根据从所述信息緩存装置中获取的所述控制信息, 对所述服务请求装置 的请求进行控制。  The service-oriented architecture service system according to claim 1, wherein the information caching device is further configured to receive, by the enterprise service bus, the service requesting device sent by the service providing device Control information requesting control; the enterprise service bus is further configured to control a request of the service requesting device according to the control information acquired from the information cache device.
3、 根据权利要求 1或 2所述面向服务的体系结构服务系统, 其特征在于, 所述信息緩存装置包括: 信息接收模块、 信息获取模块、 信息发送模块和存 储模块;  The service-oriented architecture service system according to claim 1 or 2, wherein the information cache device comprises: an information receiving module, an information acquiring module, an information sending module, and a storage module;
所述信息接收模块, 用于通过企业服务总线接收服务提供装置发送的对 申请服务请求的状态信息, 并将申请服务请求的状态信息保存至存储模块, 并通过企业服务总线接收服务请求装置发送的获取服务状态请求; 申请服务 请求的状态信息为服务提供装置对申请服务请求的处理状态; 申请服务请求 的状态信息包括申请服务请求的服务标识; The information receiving module is configured to receive status information of the application service request sent by the service providing device by using the enterprise service bus, and save the status information of the application service request to the storage module, and receive the service request device sent by using the enterprise service bus. Obtain a service status request; apply for a service The requested status information is a processing status of the service providing device requesting the service request; the status information of the application service request includes a service identifier for requesting the service request;
所述信息获取模块, 用于根据所述信息接收模块接收到的获取服务状态 请求中携带的申请服务请求的服务标识, 在所述存储模块中获取申请服务请 求的状态信息;  The information obtaining module is configured to obtain, according to the service identifier of the application service request carried in the service status request received by the information receiving module, the status information of the application service request in the storage module;
所述信息发送模块, 用于在所述获取模块获取到状态信息后, 通过所述 企业服务总线向所述服务请求装置发送响应信息, 所述响应信息包括申请服 务请求的状态信息和服务标识;  The information sending module is configured to send, by the enterprise service bus, response information to the service requesting device after the obtaining module obtains the state information, where the response information includes status information and a service identifier of the application service request;
所述存储模块, 用于存储所述信息接收模所述接收到的对申请服务请求 的状态信息。  The storage module is configured to store status information of the received request service request received by the information receiving module.
4、 根据权利要求 3所述面向服务的体系结构服务系统, 其特征在于: 所述信息接收模块, 还用于通过所述企业服务总线接收所述服务提供装 置发送的、 对所述服务请求装置的请求进行控制的控制信息, 并将所述控制 信息保存至所述存储模块;  The service-oriented architecture service system according to claim 3, wherein: the information receiving module is further configured to receive, by the enterprise service bus, the service requesting device sent by the service providing device Requesting control information for controlling, and saving the control information to the storage module;
所述存储模块, 还用于存储所述信息接收模所述接收到的控制信息。 The storage module is further configured to store the received control information by the information receiving module.
5、 根据权利要求 4所述面向服务的体系结构服务系统, 其特征在于: 所述信息接收模块, 还用于在所述企业服务总线接收到所述服务请求装 置发送的申请服务请求后, 接收所述企业服务总线发送的用于获取对所述申 请服务请求的控制信息的获取控制信息请求; 所述获取控制信息请求包括所 述申请服务请求的服务标识; The service-oriented architecture service system according to claim 4, wherein: the information receiving module is further configured to: after the enterprise service bus receives the application service request sent by the service requesting device, receive An acquisition control information request sent by the enterprise service bus for acquiring control information for the application service request; the acquisition control information request includes a service identifier of the application service request;
所述信息发送模块, 还用于根据所述信息接收模块接收到的所述申请服 务请求的服务标识, 在所述存储模块查询到对所述申请服务请求的控制信息 时, 向所述企业服务总线发送对所述申请服务请求的控制信息。  The information sending module is further configured to: according to the service identifier of the application service request received by the information receiving module, when the storage module queries the control information of the application service request, and provides the service to the enterprise The bus transmits control information for the request for service.
6、 一种信息緩存装置, 其特征在于, 包括: 信息接收模块、 信息获取模 块、 信息发送模块和存储模块; 所述信息接收模块, 用于通过企业服务总线接收服务提供装置发送的对 申请服务请求的状态信息, 并将申请服务请求的状态信息保存至存储模块, 并通过企业服务总线接收服务请求装置发送的获取服务状态请求; 申请服务 请求的状态信息为服务提供装置对申请服务请求的处理状态; 申请服务请求 的状态信息包括申请服务请求的服务标识; An information buffering device, comprising: an information receiving module, an information acquiring module, an information sending module, and a storage module; The information receiving module is configured to receive status information of the application service request sent by the service providing device by using the enterprise service bus, and save the status information of the application service request to the storage module, and receive the service request device sent by using the enterprise service bus. Obtaining a service status request; status information of the application service request is a processing status of the service providing device for the application service request; and status information of the application service request includes a service identifier for requesting the service request;
所述信息获取模块, 用于根据所述信息接收模块接收到的获取服务状态 请求中携带的申请服务请求的服务标识, 在所述存储模块中获取申请服务请 求的状态信息;  The information obtaining module is configured to obtain, according to the service identifier of the application service request carried in the service status request received by the information receiving module, the status information of the application service request in the storage module;
所述信息发送模块, 用于在所述信息获取模块获取到状态信息后, 通过 所述企业服务总线向所述服务请求装置发送响应信息, 所述响应信息包括申 请服务请求的状态信息和服务标识;  The information sending module is configured to send, after the information acquiring module acquires the status information, the response information to the service requesting apparatus by using the enterprise service bus, where the response information includes status information and service identifier of the application service request ;
所述存储模块, 用于存储所述信息接收模块接收到的对申请服务请求的 状态信息。  The storage module is configured to store status information about the request service request received by the information receiving module.
7、 根据权利要求 6所述信息緩存装置, 其特征在于:  7. The information cache device according to claim 6, wherein:
所述信息接收模块, 还用于通过所述企业服务总线接收所述服务提供装 置发送的、 对所述服务请求装置的请求进行控制的控制信息, 并将所述控制 信息保存至所述存储模块;  The information receiving module is further configured to receive, by using the enterprise service bus, control information that is sent by the service providing device and that controls a request of the service requesting device, and save the control information to the storage module. ;
所述存储模块, 还用于存储所述信息接收模块接收到的控制信息。  The storage module is further configured to store control information received by the information receiving module.
8、 根据权利要求 7所述信息緩存装置, 其特征在于:  8. The information cache device according to claim 7, wherein:
所述信息接收模块, 还用于在所述企业服务总线接收到所述服务请求装 置发送的申请服务请求后, 接收所述企业服务总线发送的用于获取对所述申 请服务请求的控制信息的获取控制信息请求; 所述获取控制信息请求包括所 述申请服务请求的服务标识;  The information receiving module is further configured to: after the enterprise service bus receives the application service request sent by the service requesting device, receive the control information sent by the enterprise service bus for acquiring the request for the application service Obtaining a control information request; the obtaining control information request includes a service identifier of the application service request;
所述信息发送模块, 还用于根据所述信息接收模块接收到的所述申请服 务请求的服务标识, 在所述存储模块查询到对所述申请服务请求的控制信息 时, 向所述企业服务总线发送对所述申请服务请求的控制信息。 The information sending module is further configured to: according to the service identifier of the application service request received by the information receiving module, query, in the storage module, control information about the request service request At the time, control information for the request service request is sent to the enterprise service bus.
9、 一种企业服务总线, 其特征在于, 包括: 服务请求适配模块、 服务提 供适配模块和信息緩存适配模块;  An enterprise service bus, comprising: a service request adaptation module, a service providing adaptation module, and an information cache adaptation module;
所述服务请求适配模块, 用于接收服务请求装置发送的申请服务请求, 并将所述申请服务请求发送到服务提供装置, 还用于接收所述服务请求装置 发送的获取服务状态请求;  The service request adaptation module is configured to receive an application service request sent by the service requesting device, and send the application service request to the service providing device, and configured to receive an acquisition service status request sent by the service requesting device;
所述服务提供适配模块, 用于在所述服务提供装置对所述申请服务请求 处理后, 接收所述服务提供装置发送的所述申请服务请求的状态信息;  The service providing adaptation module is configured to receive status information of the application service request sent by the service providing apparatus after the service providing apparatus processes the request service request;
所述信息緩存适配模块, 用于将所述服务提供适配模块接收到的状态信 息发送给信息緩存装置; 在所述信息緩存装置根据所述获取服务状态请求中 携带的所述申请服务请求的服务标识, 获取到所述申请服务请求的状态信息 后, 接收所述信息緩存装置发送的服务状态响应信息, 所述服务状态响应信 息包括所述申请服务请求的状态信息。  The information cache adaptation module is configured to send the status information received by the service providing adaptation module to the information cache device, where the information cache device is configured to perform the service request according to the acquired service status request. The service identifier, after obtaining the status information of the application service request, receiving the service status response information sent by the information cache device, where the service status response information includes status information of the application service request.
10、 根据权利要求 9所述企业服务总线, 其特征在于:  10. The enterprise service bus of claim 9 wherein:
所述服务提供适配模块, 还用于接收所述服务提供装置发送的、 对所述 服务请求适配模块接收到的申请服务请求进行控制的控制信息;  The service providing adaptation module is further configured to receive control information that is sent by the service providing apparatus and that controls an application service request received by the service request adaptation module;
所述信息緩存适配模块, 还用于将所述服务提供适配模块接收到的所述 控制信息发送给所述信息緩存装置, 还用于向所述信息緩存装置发送获取控 制信息请求, 并接收所述信息緩存装置发送的对所述申请服务请求的控制信 息;  The information cache adaptation module is further configured to send the control information received by the service providing adaptation module to the information cache device, and configured to send a request for acquiring control information to the information cache device, and Receiving control information for the request service request sent by the information cache device;
所述企业服务总线还包括: 申请服务请求控制模块, 用于根据所述信息 緩存适配模块緩存的对所述申请服务请求的控制信息, 对所述申请服务请求 进行控制。  The enterprise service bus further includes: an application service request control module, configured to control the application service request according to the control information of the application service request buffered by the information cache adaptation module.
11、 一种提供服务信息的方法, 其特征在于, 包括:  11. A method of providing service information, comprising:
在服务提供装置对服务请求装置发送申请服务请求处理后, 通过企业服 务总线接收并保存所述服务提供装置发送的所述申请服务请求的状态信息; 所述申请服务请求的状态信息表示所述服务提供装置对所述申请服务请求的 处理状态; 所述申请服务请求的状态信息包括申请服务请求的服务标识; 通过所述企业服务总线接收到所述服务请求装置发送的获取服务状态请 求, 根据所述获取服务状态请求中携带的申请服务请求的服务标识, 获取所 述保存的申请服务请求的状态信息; After the service providing device sends the application service request processing to the service requesting device, the enterprise service is passed. Receiving and saving status information of the application service request sent by the service providing apparatus; the status information of the application service request indicating a processing status of the application service request by the service providing apparatus; The status information includes a service identifier for requesting the service request, and the service service request received by the service requesting device is received by the enterprise service bus, and the service identifier of the application service request carried in the service status request is obtained according to the obtained service status request. State information of the saved application service request;
通过所述企业服务总线向所述服务请求装置发送包括所述申请服务请求 的状态信息的响应信息。  The response information including the status information of the application service request is transmitted to the service requesting device via the enterprise service bus.
12、 根据权利要求 11所述提供服务信息的方法, 其特征在于, 所述方法 还包括:  The method for providing service information according to claim 11, wherein the method further comprises:
通过所述企业服务总线接收并保存所述服务提供装置发送的、 对所述服 务请求装置的请求进行控制的控制信息。  Control information for controlling the request of the service requesting device transmitted by the service providing device is received and saved by the enterprise service bus.
13、 一种面向服务的体系结构服务系统, 其特征在于, 包括: 企业服务 总线、 服务提供装置、 信息緩存装置和服务请求装置;  13. A service oriented architecture service system, comprising: an enterprise service bus, a service providing device, an information caching device, and a service requesting device;
所述信息緩存装置与所述企业服务总线连接, 所述企业服务总线与所述 服务提供装置连接; 所述信息緩存装置, 用于通过所述企业服务总线接收所 述服务提供装置发送的、 对所述服务请求装置的请求进行控制的控制信息后 , 保存所述控制信息;  The information cache device is connected to the enterprise service bus, and the enterprise service bus is connected to the service providing device. The information cache device is configured to receive, by using the enterprise service bus, the service provider, After the service requesting device requests the control information to be controlled, the control information is saved;
所述企业服务总线还与所述服务请求装置连接, 用于接收所述服务请求 装置发送的请求, 并从所述信息緩存装置中获取所述请求的控制信息, 对所 述请求进行控制。  The enterprise service bus is further connected to the service requesting device for receiving a request sent by the service requesting device, and acquiring the requested control information from the information cache device to control the request.
PCT/CN2011/073359 2010-07-29 2011-04-27 Method, device and service system for providing service information WO2011140914A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010243893.4 2010-07-29
CN201010243893.4A CN102143195B (en) 2010-07-29 2010-07-29 Method, device and service system providing service information

Publications (1)

Publication Number Publication Date
WO2011140914A1 true WO2011140914A1 (en) 2011-11-17

Family

ID=44410416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073359 WO2011140914A1 (en) 2010-07-29 2011-04-27 Method, device and service system for providing service information

Country Status (2)

Country Link
CN (1) CN102143195B (en)
WO (1) WO2011140914A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9325808B2 (en) 2012-04-26 2016-04-26 International Business Machines Corporation Message handling in a data processing system
US9755889B2 (en) 2013-02-13 2017-09-05 International Business Machines Corporation Service failover and failback using enterprise service bus

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647319A (en) * 2012-03-27 2012-08-22 许继集团有限公司 Application service system and inter-process communication method for charging and swapping station monitoring
CN103595695A (en) * 2012-08-15 2014-02-19 深圳中兴网信科技有限公司 Method and system for providing services by service bus
CN103067272A (en) * 2012-12-30 2013-04-24 山东中创软件工程股份有限公司 Guarantee method and system of message router
CN103116627B (en) * 2013-01-31 2016-05-18 汉柏科技有限公司 A kind of method and system of high concurrent SOA technology access database
CN103312560A (en) * 2013-05-24 2013-09-18 广东电网公司电力科学研究院 Integrated test method and test system for general service bus of master station of power grid
CN106953896B (en) * 2017-02-21 2020-05-01 深圳市智物联网络有限公司 Data transmission method of adapter and adapter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070033194A1 (en) * 2004-05-21 2007-02-08 Srinivas Davanum M System and method for actively managing service-oriented architecture
US20070192706A1 (en) * 2006-02-14 2007-08-16 International Business Machines Corporation Service gateway for providing a scalable and loosely coupled service oriented architecture
CN101207542A (en) * 2007-12-12 2008-06-25 江苏省电力公司 A fast addressing method for multi-level service bus service calls under SOA architecture
US20080299947A1 (en) * 2007-05-31 2008-12-04 Mark Cameron Litttle Addressable dispatchers in distributed computing
US20100146037A1 (en) * 2008-11-26 2010-06-10 Mark Cameron Little Service oriented architecture with dynamic policy enforcement points

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070033194A1 (en) * 2004-05-21 2007-02-08 Srinivas Davanum M System and method for actively managing service-oriented architecture
US20070192706A1 (en) * 2006-02-14 2007-08-16 International Business Machines Corporation Service gateway for providing a scalable and loosely coupled service oriented architecture
US20080299947A1 (en) * 2007-05-31 2008-12-04 Mark Cameron Litttle Addressable dispatchers in distributed computing
CN101207542A (en) * 2007-12-12 2008-06-25 江苏省电力公司 A fast addressing method for multi-level service bus service calls under SOA architecture
US20100146037A1 (en) * 2008-11-26 2010-06-10 Mark Cameron Little Service oriented architecture with dynamic policy enforcement points

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9325808B2 (en) 2012-04-26 2016-04-26 International Business Machines Corporation Message handling in a data processing system
US9755889B2 (en) 2013-02-13 2017-09-05 International Business Machines Corporation Service failover and failback using enterprise service bus

Also Published As

Publication number Publication date
CN102143195A (en) 2011-08-03
CN102143195B (en) 2014-12-03

Similar Documents

Publication Publication Date Title
WO2011140914A1 (en) Method, device and service system for providing service information
JP6291649B2 (en) Communication network and operation method of communication network
US11064330B2 (en) Methods for enabling delay-awareness in the constrained application protocol (CoAP)
JP5967090B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, NODE CONTROL METHOD, AND PROGRAM
US8271610B2 (en) Distributed content caching solution for a mobile wireless network
US6985463B1 (en) Resource utilization efficiency during hand-off in mobile communication systems
WO2008077299A1 (en) A redirector, a relay and a routing information configuration system and an updating method
CN114697240B (en) Data transmission method, device, system and storage medium
WO2015113291A1 (en) Wireless network data processing device and wireless network system
WO2012072045A1 (en) Method, network node and system for data transmission in cdn network
Zuo et al. Low-latency networking: Architecture, techniques, and opportunities
WO2015100593A1 (en) Message transmission method, apparatus and communication system
WO2015052867A1 (en) Terminal device, terminal-device control method, and terminal-device control program
JP2018521562A (en) Method, apparatus, and system for enhancing parallel processing capability of a wireless local area network
CN101355492A (en) Simple object access protocol routing method, routing system and related equipment
US8948050B2 (en) Distribution system, distribution method, and memory medium thereof
CN107231567B (en) A message transmission method, device and system
WO2016165524A1 (en) Content access method, wireless access network content distribution network base station and core content distribution network apparatus
WO2023221452A1 (en) Packet processing system and method, device, and storage medium
WO2014075489A1 (en) Traffic management scheduling method and apparatus
KR20190064066A (en) Traffic load management apparatus and method based on coordinated application protocol for internet of things local networks
Sadeq et al. Enhanced mqtt for providing qos in internet of things (iot): a study
CN103746935B (en) A kind of bandwidth based on application layer protocol merges middleware system
JP2016046637A (en) Band control system, band control method, and program
JP5886770B2 (en) Communication node, network system, and communication method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11780135

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11780135

Country of ref document: EP

Kind code of ref document: A1