Method for realizing application program to access database

An application program access and application program technology, applied in the field of network communication, can solve the problems of large development workload, large program modification range, lack of versatility, etc., to achieve the effect of ensuring confidentiality

Active Publication Date: 2012-10-17
BEIJING JOIN CHEER SOFTWARE
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method is not universal, and the application program needs to be developed differently for different interfaces, the scope of program modification involved is large, and the development workload is heavy

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 for realizing application program to access database
  • Method for realizing application program to access database
  • Method for realizing application program to access database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0038] Figure 5 It is a schematic diagram of the application program's access to the database in the normal mode, such as Figure 5 As shown, when the database server and the application server are in the same network environment, the application server can directly connect to the database through the JDBC driver, but when the database server and the application server are not in the same network environment, the application server and the database will be is...

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 provides a method for realizing an application program to access a database. The method comprises the following steps of: arranging a WAR (Web Archive File) packet of a proxy server at a database side of a fire wall in middleware; additionally arranging a proxy JDBC (Java Date Base Connectivity) driver for accessing the proxy server by configuring URL (Uniform Resource Locator) at an application program side of the fire wall; calling a webservice interface to send a database access request to the proxy server by the proxy JDBC driver; receiving the database access request and sending the database access request to a database by the proxy server; receiving a returning result of the database, which is generated according to the database access request, and outputting the returning result to the proxy JDBC driver by the proxy server; and receiving the returning result received by the proxy JDBC driver. With the adoption of the method provided by the invention, the application program accesses the database without modifying an extra program, so that the fire wall is safely passed through.

Description

technical field [0001] The present invention relates to network communication technology, in particular to a method for implementing application programs to access databases. Background technique [0002] The application program often needs to interact with the database. Generally, the database server and the application server are in the same network environment, and the two can be directly connected. But in some cases, the database server and the application server are not in the same network environment, and there is a firewall between them. [0003] In order to solve the connection problem between the application program and the database when they are not in the same network environment, the following methods are usually adopted in the prior art: [0004] 1 Take the method of opening ports in the firewall to allow applications to connect directly to the database. [0005] Such as figure 1 As shown, when an application program accesses a database service, a conventiona...

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 Applications(China)
IPC IPC(8): H04L29/06
Inventor 李纪洲王星宇林敏
Owner BEIJING JOIN CHEER SOFTWARE
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