Claims
- 1. A method of caching connections to a resource, comprising:
receiving a request for a connection to the resource, wherein available physical connections to the resource are stored in a cache; obtaining a physical connection to the resource; and setting a timeout for a logical connection that utilizes the physical connection such that the timeout specifies an amount of time the logical connection can be utilized pursuant to the request.
- 2. The method of claim 1, further comprising returning the physical connection to the cache when the timeout expires.
- 3. The method of claim 1, wherein obtaining the physical connection comprises obtaining the physical connection from the cache or opening a new physical connection.
- 4. The method of claim 1, wherein the amount of time for the timeout is specified as a property of the cache.
- 5. The method of claim 1, wherein the resource is a database.
- 6. A computer program product that caches connections to a resource, comprising:
computer code that receives a request for a connection to the resource, wherein available physical connections are stored in a cache; computer code that obtains a physical connection to the resource; computer code that sets a timeout for a logical connection utilizes the physical connection such that the timeout specifies an amount of time the logical connection can be utilized pursuant to the request; and a computer readable medium that stores the computer codes.
- 7. The computer program product of claim 6, wherein the computer readable medium is a CD-ROM, floppy disk, tape, flash memory, system memory, hard drive, or data signal embodied in a carrier wave.
- 8. A database system, comprising:
a database that stores information; a cache that stores physical connections to the database; and a connection manager that receives a request for a connection to the database; obtains a physical connection to the resource; and sets a timeout for a logical connection that utilizes the physical connection such that the timeout specifies an amount of time the logical connection can be utilized pursuant to the request.
- 9. A method of caching connections to a resource, comprising:
receiving a request for a connection to the resource; obtaining a physical connection to the resource; providing a logical connection to the resource that utilizes the physical connection, thereby satisfying the request; and setting a timeout for the logical connection that specifies an amount of time the logical connection can be utilized.
- 10. The method of claim 9, further comprising maintaining a cache of open physical connections to the resource.
- 11. The method of claim 9, further comprising closing the logical connection when the timeout expires.
- 12. The method of claim 9, further comprising returning the physical connection to the cache when the timeout expires.
- 13. The method of claim 9, wherein obtaining the physical connection comprises obtaining the physical connection from the cache or opening a new physical connection.
- 14. The method of claim 9, wherein the amount of time for the timeout is specified as a property of the cache.
- 15. The method of claim 9, wherein the resource is a database.
- 16. A computer program product that caches connections to a resource, comprising:
computer code that receives a request for a connection to the resource; computer code that obtains a physical connection to the resource; computer code that provides a logical connection to the resource that utilizes the physical connection, thereby satisfying the request; computer code that sets a timeout for the logical connection that specifies an amount of time the logical connection can be utilized; and a computer readable medium that stores the computer codes.
- 17. The computer program product of claim 16, wherein the computer readable medium is a CD-ROM, floppy disk, tape, flash memory, system memory, hard drive, or data signal embodied in a carrier wave.
- 18. A database system, comprising:
a database that stores information; a cache that stores physical connections to the database; and a connection manager that receives a request for a connection to the resource; obtains a physical connection to the resource; provides a logical connection to the resource that utilizes the physical connection, thereby satisfying the request; and sets a timeout for the logical connection that specifies an amount of time the logical connection can be utilized.
RELATED APPLICATIONS
[0001] This application is related to U.S. application Ser. No. ______, filed ______ (attorney docket no. ORACP008) and U.S. application Ser. No. ______, filed ______ (attorney docket no. ORACP009), both of which are hereby incorporated by reference.