Synchronous information interface realizing method based on JAVA information service

A technology of synchronous message and message service, applied in the direction of digital transmission system, data exchange network, electrical components, etc., can solve the problem that the application program cannot realize synchronous communication concisely and reliably, and achieve the effect of reliable synchronous communication

Inactive Publication Date: 2009-01-07
ZTE CORP
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The technical problem to be solved by the present invention is to provide a method for implementing a synchronous message interface based on JAVA message service, and to solve the technical problem that the prior art cannot allow the application program to realize synchronous communication concisely and reliably

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Synchronous information interface realizing method based on JAVA information service
  • Synchronous information interface realizing method based on JAVA information service
  • Synchronous information interface realizing method based on JAVA information service

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention provides a JMS-based synchronous message interface implementation method, which provides a series of synchronous message call interfaces by synchronously encapsulating and converting the asynchronous messages provided by JMS, so as to meet the requirements of simple and reliable synchronous communication for application programs.

[0036] The realization method based on the synchronous message interface of JMS that the present invention provides, comprises the following steps:

[0037] Step 1, build a JMS application server, and configure two message queues on it, where the request queue is used to transfer synchronization request messages, and the response queue is used to transfer response messages.

[0038] Step 2, at the sender of the synchronization message, construct a message data area (using a fixed-length array structure), establish a thread-safe idle queue and a sending queue. Initially, the length of the idle queue is the length of the a...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A method for realizing synchronous message interface based on JAVA message service includes entering synchronous request message to message interface of sending party (SP) and entering it to data region of SP through idle queue then sending it to application server through sending queue under action of sending linear program at SP, processing said request message to generate a processed result under action of receiving linear program at consuming party (CP) and entering said result to data region of CP through idle queue of CP then sending synchronous response message to application server under action of sending linear program at CP, finally sending said response message to said message interface under action of receiving linear program at SP.

Description

technical field [0001] The invention relates to a method for implementing a JAVA application synchronous communication mechanism, in particular to a method for synchronous communication within a distributed JAVA application system or between systems. Background technique [0002] Java Message Service (JMS) can help us reduce the coupling between applications, while allowing applications to communicate and use each other's resources. [0003] JMS generally includes at least three components: two JMS clients and a JMS server. Two clients communicate with each other through a JMS server. A JMS client is a conventional application program that uses the JMS API (Application Programming Interface, API, application programming interface) to send and receive messages. [0004] A JMS server can be any application that implements the JMS specification. Some JMS servers are part of a larger application; others are applications dedicated to JMS tasks. There are many third-party comm...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/58
Inventor 张长丰金海王丽蓉
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products