Try like this:
assembly.xml
--------------
...
<block
class="org.apache.avalon.cornerstone.blocks.DefaultDataSourceSelector"
name="datasources" />
config.xml
----------
<datasources>
<data-sources>
<data-source name="default1"
class="org.apache.avalon.excalibur.datasource.JdbcDataSource">
<!-- configuration for JdbcDataSource -->
</data-source>
<data-source name="default2"
class="org.apache.avalon.excalibur.datasource.J2EEDataSource">
<!-- configuration for J2EEDataSource -->
</data-source>
...
</data-sources>
</datasources>
----- Original Message -----
From: "umashanker" <[EMAIL PROTECTED]>
To: "Avalon Development" <[EMAIL PROTECTED]>
Sent: Wednesday, August 22, 2001 12:14 PM
Subject: how to set configration data for DataSource?
> I'm writing demo for DataSource block, which will get me JdbcConnection
from
> the pool.
> I'm using
> "org.apache.avalon.cornerstone.services.datasource.DataSourceSelector" to
> get the DataSourceComponent from the excalibur package.
>
> But i'm finding it difficult to set the configration data for this block.
> Phoenix is throws exception at "DefaultSarDeployer".
>
> I have gone through "Developing with Avalon" developer guide and Phoenix
> assemblers guide. still i'm not getting how this has to be done.Can any
one
> please give me the sample configration data for the DataSource block. And
> explain how it will work?
>
> regards,
>
> ---------------
> "Eung-ju Park" wrote:-
>
> > See org.apache.avalon.cornerstone.services.datasource.DataSourceSelector
> and
> >
org.apache.avalon.cornerstone.blocks.datasource.DefaultDataSourceSelector.
> > DataSourceSelector is ComponentSelector for
> > org.apache.avalon.excalibur.datasource.DataSourceComponent.
>
> ----------
> "umashanker" wrote:
> > > I am new to Avalon, and going through excalibur components and
> > cornerstone
> > > blocks.
> > >
> > > The demos which are given for phoenix container is working fine.
> > >
> > > All the service/blocks are using the ComponentManager- to load the
> > > components.
> > >
> > > Is there any demo service/block which uses ComponentSelector?( for the
> > > DataSource block)
> > >
> > > if NO , how to create it?
> > >
> > > regards,
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]