Claims
- 1. A method of caching connections to a resource, comprising:
receiving a request for a connection to the resource, wherein the request does not indicate whether the connection to the resource should be obtained from the cache or opened to the resource; determining if available connections are stored in a cache; and obtaining the connection to the resource from the cache if available connections are stored in a cache.
- 2. The method of claim 1, further comprising obtaining the connection to the resource by opening the connection if available connections are not stored in a cache.
- 3. The method of claim 1, wherein determining if available connections are stored in a cache comprises analyzing a property of the resource.
- 4. The method of claim 1, further comprising initializing the cache if available connections are stored in a cache and this is a first request for a connection to the resource.
- 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 the request does not indicate whether the connection to the resource should be obtained from the cache or opened to the resource; computer code that determines if available connections are stored in a cache; computer code that obtains the connection to the resource from the cache if available connections are stored in a cache; 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 connections to the database; and a connection manager that receives a request for a connection to the resource, wherein the request does not indicate whether the connection to the resource should be obtained from the cache or opened to the resource; determines if available connections are stored in a cache; and obtains the connection to the resource from the cache if available connections are stored in a cache.
- 9. A method of caching connections to a resource, comprising:
receiving a request for a connection to the resource; analyzing a property of the resource to determine if available connections are stored in a cache; obtaining the connection to the resource from the cache if available connections are stored in a cache; and obtaining the connection to the resource by opening the connection if available connections are not stored in a cache.
- 10. The method of claim 9, wherein the request does indicate whether the connection to the resource should be obtained from the cache or opened to the resource.
- 11. The method of claim 9, further comprising initializing the cache if available connections are stored in a cache and this is a first request for a connection to the resource.
- 12. The method of claim 9, wherein the resource is a database.
- 13. 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 analyzes a property of the resource to determine if available connections are stored in a cache; computer code that obtains the connection to the resource from the cache if available connections are stored in a cache; computer code that obtains the connection to the resource by opening the connection if available connections are not stored in a cache; and a computer readable medium that stores the computer codes.
- 14. The computer program product of claim 13, 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.
- 15. 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; analyzes a property of the resource to determine if available connections are stored in a cache; obtains the connection to the resource from the cache if available connections are stored in a cache; and obtains the connection to the resource by opening the connection if available connections are not stored in a cache.
RELATED APPLICATIONS
[0001] This application is related to U.S. application Ser. No. ______, filed ______ (attorney docket no. ORACP007) and U.S. application Ser. No. ______, filed ______ (attorney docket no. ORACP008), both of which are hereby incorporated by reference.