MANAGING DATABASE CONNECTIONS
First Claim
1. A method for managing a database connection, the method comprising:
- in responsive to a connection request of a first application, allocating an available connection for the first application;
selecting an allocated connection being held by a second application if there is no available connection;
backing up connection context of the connection being held;
releasing the connection being held; and
allocating the connection being held for the first application.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a method for managing a database connection, comprising the steps of: in responsive to a connection request of a first application, allocating an available connection for the first application; if there is no available connection, selecting a held connection being used by a second application; backing up connection context of the held connection; releasing the held connection; and allocating the held connection for the first application. Since connection context of the application has been restorably backed up, a connection of the application can be cut off and the connection re-scheduled when necessary. As a result, the connection utilization rate is enhanced. The present invention further provides a device and system that can manage a database connection based on the technology of connection pools.
-
Citations
20 Claims
-
1. A method for managing a database connection, the method comprising:
-
in responsive to a connection request of a first application, allocating an available connection for the first application; selecting an allocated connection being held by a second application if there is no available connection; backing up connection context of the connection being held; releasing the connection being held; and allocating the connection being held for the first application. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A database connection manager for managing connections in a connection pool to a database, the database connection manager comprising:
-
connection context backup means for backing up context of a connection; connection scheduling means for scheduling the connection, comprising; means for allocating an available connection for a first application in responsive to a connection request of the first application; means for selecting an allocated connection being held by a second application if there is no available connection; means for controlling the connection context backup means to back up connection context of the connection being held; means for releasing the connection being held; and means for allocating the connection being held for the first application. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification