In-house elegant JDBC connection pooling solution for message broker
First Claim
1. A method, comprising:
- receiving a request from an application at a first request receiver, wherein the requesting application is one of a plurality of applications accessing a system;
processing the request received at the first request receiver by a request processor;
transforming the request, as processed by the request processor, from a front end format supported by the requesting application into a back end format supported by the back end mechanism by a request transformer;
forwarding, by a transceiver, the transformed request to a back end mechanism;
receiving, by the transceiver, a response to the transformed request from the back end mechanism;
obtaining information from the response via processing by a response processor;
transforming, by a response transformer, the response, as processed by the response processor, from the back end format supported by the back end mechanism into the front end format supported by the requesting application of the plurality of applications accessing the system;
transmitting, by a first response transmitter, the transformed response to the requesting application of the plurality of applications accessing the system;
maintaining, by a connection pool mechanism, a single global pool of database connections with at least a minimum non-zero number of idle connections open, where the minimum non-zero number of idle connections is determined based on the overall traffic from all applications of the plurality of applications and independent of one or more threads of the application, and where each database connection in the single global pool of database connections is available for any use by all applications of the plurality of applications accessing the system;
storing the obtained information in a database via a first database connection allocated from the pool of a plurality of database connections created to facilitate access to the database; and
returning the first database connection to the single global pool of database connections for reuse.
1 Assignment
0 Petitions
Accused Products
Abstract
Connection pooling is proved in the context of middleware. A request is first received from an application. The received request is forwarded to a back end mechanism. When a response is received from the back end mechanism, as a response to the request, information is obtained from the response. A pool of database connections is maintained with at least a minimum number of connections open, where the minimum number of connections is determined independent of one or more application threads. To store the information in a database, a database connection is allocated from a pool of open database connections created to facilitate access to the database. After the information is stored in the database using the database connection, the database connection is returned to the pool of database connections.
22 Citations
32 Claims
-
1. A method, comprising:
-
receiving a request from an application at a first request receiver, wherein the requesting application is one of a plurality of applications accessing a system; processing the request received at the first request receiver by a request processor; transforming the request, as processed by the request processor, from a front end format supported by the requesting application into a back end format supported by the back end mechanism by a request transformer; forwarding, by a transceiver, the transformed request to a back end mechanism; receiving, by the transceiver, a response to the transformed request from the back end mechanism; obtaining information from the response via processing by a response processor; transforming, by a response transformer, the response, as processed by the response processor, from the back end format supported by the back end mechanism into the front end format supported by the requesting application of the plurality of applications accessing the system; transmitting, by a first response transmitter, the transformed response to the requesting application of the plurality of applications accessing the system; maintaining, by a connection pool mechanism, a single global pool of database connections with at least a minimum non-zero number of idle connections open, where the minimum non-zero number of idle connections is determined based on the overall traffic from all applications of the plurality of applications and independent of one or more threads of the application, and where each database connection in the single global pool of database connections is available for any use by all applications of the plurality of applications accessing the system; storing the obtained information in a database via a first database connection allocated from the pool of a plurality of database connections created to facilitate access to the database; and returning the first database connection to the single global pool of database connections for reuse. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 24, 25, 27, 28, 30, 31)
-
-
9. A system, comprising:
-
a first request receiver configured for receiving a request from an application, wherein the requesting application is one of a plurality of applications accessing a system; a request processor configured to process the request received at the first request receiver; a request transformer configured to transform the request, as processed by the request processor, from a front end format supported by the requesting application into a back end format supported by the back end mechanism; a transceiver configured for forwarding the transformed request to a back end mechanism and for receiving a response to the transformed request from the back end mechanism; a response processor configured for processing the received response to obtain information from the response; a response transformer configured to transform the response, as processed by the response processor, from the back end format supported by the back end mechanism into the front end format supported by the requesting application of the plurality of applications accessing the system; a first response transmitter to transmit the transformed response to the requesting application of the plurality of applications accessing the system; and a connection pooling mechanism configured for maintaining a single global pool of database connections with at least a minimum non-zero number of idle connections open, where the minimum non-zero number of idle connections is determined based on the overall traffic from all applications of the plurality of applications and independent of one or more application threads, and for storing the information in a database via a database connection allocated from the pool of a plurality of database connections created to facilitate access to the database, where each database connection in the pool of the plurality of database connections is available for any use by all applications of the plurality of applications accessing the system. - View Dependent Claims (10, 11, 12, 13, 23, 26, 29, 32)
-
-
14. An article of manufacture, comprising:
-
a machine readable storage medium having information stored thereon, the information, when read by the machine, causing the machine to perform the following for an enterprise service bus provider; receiving a request from an application at a first request receiver, wherein the requesting application is one of a plurality of applications accessing a system; processing the request received at the first request receiver by a request processor; transforming the request, as processed by the request processor, from a front end format supported by the requesting application into a back end format supported by the back end mechanism by a request transformer; forwarding, by a transceiver, the transformed request to a back end mechanism; receiving, by the transceiver, a response to the transformed request from the back end mechanism; obtaining information from the response via processing by a response processor; transforming, by a response transformer, the response, as processed by the response processor, from the back end format supported by the back end mechanism into the front end format supported by the requesting application of the plurality of applications accessing the system; transmitting, by a first response transmitter, the transformed response to the requesting application of the plurality of applications accessing the system; maintaining, by a connection pool mechanism, a single global pool of database connections with at least a minimum non-zero number of idle database connections open, where the minimum non-zero number of idle database connections is determined based on the overall traffic from all a applications of the plurality of applications and independent of one or more threads of the application, and where each database connection in the single global pool of database connections is available for any use by all different threads of the application or other applications of the plurality of applications accessing the system; and storing the obtained information in a database via a first database connection allocated from the pool of database connections created to facilitate access to the database; and
returning the first database connection to the single global pool of database connections. - View Dependent Claims (15, 16, 17, 18, 19, 20, 21, 22)
-
Specification