> -----Original Message----- > From: Mike Schubert [mailto:[EMAIL PROTECTED] > Sent: Monday, July 26, 2004 11:48 > To: [EMAIL PROTECTED] > Subject: DataSourceSelector how to config?? > > Hallo, > > i use the "cornerstore" DataSourceSelector (better "i would...") > but it work not so as i thought. > > I configure a block.xml like this: > ------------------------------------------------------------------ > <include name="dataSource" id="cornerstone-datasources:cornerstone- > datasources-impl" version="1.0"> > <configuration> > <data-sources> > <data-source name="oracledb" > class="org.apache.avalon.excalibur.datasource.JdbcDataSource"> > <pool-controller min="5" max="20"> > <keep-alive>select 1</keep-alive> > </pool-controller> > <auto-commit>true</auto-commit> > <driver>oracle.jdbc.driver.OracleDriver</driver> > <dburl>jdbc:oracle:thin:@...</dburl> > <user>...</user> > <password>...</password> > </data-source> > </data-sources> > </configuration> > </include>
You should be declaring you <configuration> within a named target. http://avalon.apache.org/products/runtime/reference/containment/include/ index.html http://avalon.apache.org/products/runtime/reference/kernel/overrides/tar get/index.html <include name="dataSource" id="cornerstone-datasources:cornerstone- datasources-impl" version="1.0"> <target path="manager"> <configuration> ... </configuration> </target> </include> That should solve the problem. Cheers, Steve. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
