Kieffer, I am moving this to avalon-users list. I figure
as we have this new shiny email list, we might as well use it. :)
You can subscribe to it by sending an email to
[EMAIL PROTECTED]
First, could you provide some more detail - what container do you
use? Phoenix?
As for the error - could you check your logs and see if
there is an Exception stack trace there?
/LS
> -----Original Message-----
> From: Kieffer, Guillaume [mailto:[EMAIL PROTECTED]]
> Sent: den 13 juni 2002 12:03
> To: '[EMAIL PROTECTED]'
> Subject: [DataSource] Newbie question..
>
>
> Hello Avalon gurus,
>
> I have configured a datasource selector component like this:
>
> <data-sources>
> <data-source name="oracle"
> class="org.apache.avalon.excalibur.datasource.JdbcDataSource">
> <pool-controller min="5" max="10"
>
> connection-class="org.apache.avalon.excalibur.datasource.JdbcC
> onnection">
> <keep-alive disable="false">select 1 from dual</keep-alive>
> </pool-controller>
> <driver>oracle.jdbc.driver.OracleDriver</driver>
> <dburl>jdbc:oracle:thin:@10.0.0.1:1521:SRV</dburl>
> <user>XXX</user>
> <password>XXX</password>
> </data-source>
> </data-sources>
>
> The other configuration part is:
> <db-pool pickup="oracle" submit="oracle"/>
>
> But when I am trying to retrieve the Datasource component
> with the name "oracle" from the Datasource selector I get the
> following error
> (Reason: Unable to provide DataSourceComponent for oracle)
>
> The block is declared.
>
> Here is my code snippet:
> private DataSourceComponent dsPickup = null;
> private DataSourceComponent dsSubmit = null;
>
> dsSelector = (ComponentSelector)manager.lookup(
> DataSourceSelector.ROLE);
> dsPickup = (DataSourceComponent)
> dsSelector.select (poolConfig.getAttribute("pickup"));
>
> Could you provide me some infos on this.
>
> THX a lot,
> Guillaume Kieffer
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>