avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Problem creating/using JdbcConnectionPool
Date Mon, 02 Jul 2001 15:30:39 GMT
Philip Antoniades wrote:
> 
> hello,
> 
> I've read about all the docs I can get my hands on, and i suspect i
> still dont get how to properly deploy Components through avalon. But why
> does this code:

Because you didn't use the Component.  Try this:

DataSourceComponent ds = new JdbcDataSource();
ds.setLogger(this.getLogger());
ds.compose(this.manager);
ds.configure(conf);
ds.initialize();


The configuration should look like this:

<jdbc-connection>
  <!-- if this is not an Oracle databse change oradb -->
  <pool-controller min="5" max="10" oradb="true"/>

  <dburl>jdbc:oracle:thin:@ORADB:localhost:1521</dburl>
  <user>joe</user>
  <password>blow</password>
</jdbc-connection>


Also make sure you have already loaded the driver class into the
classloader.
Mime
View raw message