Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device to transfer data by buffer technique in enterprise application frame

A buffering technology, enterprise application technology, applied in the enterprise application framework to call the data field, which can solve the problems of inability to modify, not have, code duplication, etc.

Inactive Publication Date: 2009-09-23
HUAWEI TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 1. Every method that requires buffering needs to introduce such complex buffering code, which will not only lead to a lot of code duplication, but also mix the code that processes business logic with the buffered code, which will bring many difficulties to code maintenance;
[0008] 2. Designers must change the original data call process during development and introduce cache (cache memory) objects that have nothing to do with business logic;
[0009] 3. If you need to use such a buffer method to optimize the process of data calls that have already been executed, you must obtain the corresponding source code, add the buffer implementation, and modify all references to this method. These conditions are often used in practical applications is not available
[0010] 4. If the performance of the Cache cannot meet the requirements, no modification can be made without the code. If you need to remove the buffer in the method, you must modify the source code to remove the buffer, and recompile and release. This process violates the OCP (Open- Close Principle, open and close principle)
[0011] From the above disadvantages, image 3 The biggest disadvantage of using the buffering technology to call the data method shown is that buffering code is introduced into each business method that needs buffering, resulting in the mixing of business logic code and buffering code, which is not conducive to code maintenance and modification. In essence, this Method implements an intrusive buffer that violates OCP
In addition, this shortcoming is not unique to the J2EE enterprise architecture, and this problem also exists in other architectures

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
  • Method and device to transfer data by buffer technique in enterprise application frame
  • Method and device to transfer data by buffer technique in enterprise application frame
  • Method and device to transfer data by buffer technique in enterprise application frame

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Below we will describe in detail the best implementation of the present invention with reference to the accompanying drawings. First of all, it should be pointed out that the meanings of the terms, words and claims used in the present invention should not be limited to their literal and ordinary meanings, but also include meanings and concepts that are consistent with the technology of the present invention. This is because It is up to us, as inventors, to define terms appropriately in order to best describe our inventions. Therefore, the configurations given in this specification and the accompanying drawings are only preferred implementations of the present invention, rather than enumerating all technical characteristics of the present invention. We need to recognize that there are various equivalents or modifications that could replace ours.

[0030]The present invention sets an interceptor in the business layer of the enterprise application framework, and the calle...

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

The invention discloses a method for invoking data using buffer technology in an enterprise application framework, comprising: a pre-set interceptor intercepting a caller's invocation of a business method; the interceptor judges whether the business method has been executed, and if so, The interceptor retrieves the data that needs to be called from the buffer and returns it to the caller, otherwise, it returns to the process in which the caller calls the business method, wherein the business method directly returns the executed result to the For the caller, when the business method directly returns the executed result to the caller, the interceptor stores the executed result of the business method in the buffer. The present invention does not need to modify the original code and change the original business process too much, which not only reduces the workload of developers and maintenance personnel, but also can be based on the results after the actual operation of the system without considering buffering during the development period. Flexible adjustment of buffer execution, especially suitable for system tuning.

Description

technical field [0001] The invention relates to the technology of enterprise application framework, in particular to the technique of invoking data in the enterprise application framework. Background technique [0002] At present, there are various types of enterprise application frameworks, such as enterprise application frameworks in J2EE and enterprise application frameworks in .net, and each framework will have the technology of invoking data. Taking the enterprise application architecture in J2EE as an example, this architecture basically adopts the N-tier architecture pattern of MVC (Model-View-Controller, Model-View-Controller), and its typical pattern is as follows: figure 1 shown. Among them, Servlet is a Server (server) program written in Java, which has nothing to do with protocols and platforms. Servlet runs in Java-enabled Web Server. Servlet can dynamically expand the capabilities of Server and provide Web services in request-response mode. ; JSP is the abbre...

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): G06F17/30
Inventor 曹祖鹏
Owner HUAWEI TECH CO LTD