Cornerstone Components - Datasource

Description

The ConnectionManager service provides a facility to listen for incoming socket connections. The DefaultConnectionManager compoent gives a thread pooled implementation of this service. If there are multiple server components depending on this component, they would all share the same thread pool.

Deployment Facts

Containment Avalon Framework 4.2.0
Lifestyle singleton
Lifecycle
Stage Description
LogEnabled Logs lifescycle stages and handles assignment of logging channels to managed connection handlers.
Contextualizable
Key Type Required
block.name java.lang.String false
Configurable

Example configuration:

 <configuration>
   <data-source name="default"
     class="org.apache.avalon.excalibur.datasource.JdbcDataSource">
     <!-- configuration for JdbcDataSource -->
     <pool-controller min="5" max="10" 
       connection-class="my.overrided.ConnectionClass">
     <keep-alive>select 1</keep-alive>
     </pool-controller>
     <driver>com.database.jdbc.JdbcDriver</driver>
     <dburl>jdbc:driver://host/mydb</dburl>
     <user>username</user>
     <password>password</password>
   </data-source>
 </configuration>
                  
Initializable Component initialization.
Disposable Component disposal.