DDConnectionBroker

Project Rank in Pools & Connection Pools:   7

DDConnectionBroker is a simple, light database connection-pooling tool for Java developers. 

The DDConnectionBroker has a simple contract with you, the developer:

  • DDConnectionBroker will create and maintain a pool of java.sql.Connection objects.
  • When the DDConnectionBroker is first constructed, minConnections will be established in the connection pool.
  • maxConnections must be >= minConnections.
  • A log file can be created for the DDConnectionBroker output. If the logFile parameter is set to null, no log file will be created or written to.
  • If a new connection cannot be created in waitTimeout ms, an SQLException will be thrown.
  • DDConnectionBroker will not return a null connection; it will throw an SQLException instead.
  • In the future, the number of connections in the pool will vary from minConnections to maxConnections; minConnections will be available during slow times; maxConnections will be in the pool when busy. (This is not currently implemented.)
  • In the future the maxLeaseTime will be supported. This will allow the user to lease a database connection from the pool for maxLeaseTime ms. When the lease time expires, if the connection has not been returned by the calling program, the connection will be freed from that prior obligation and made available again in the pool. (Not currently implemented.)


See Other Best Pools & Connection Pools Projects in Java:

List of Companies, Suppliers, Distributors, Importers & Exporters
Add to favorites | Contact US | Java Example Source Code | Sitemap Generator
Copyright © 2007 - 2008 exampleshow.com