An improved resource pool is provided that provides for dynamic
configuration and is comprised of code that is configured to be used for
different subsystems, including JDBC, Connector, and JMS subsystems. Pool
maintenance, resource object creation and timeout, multiple deque
management, and pool state transition features are provided. An
application server may include at least one resource pool object, wherein
each resource pool object represents a resource pool in the application
server. An improved prepared statement cache is also provided that works
in conjunction with the resource pool implementation to more effectively
provide for prepared statement processing.