RE: DataSourceSelector how to config??
"Stephen McConnell" <[email protected]>
| Newsgroups | gmane.comp.jakarta.avalon.user |
|---|---|
| Message-ID | <000201c472ff$770faf00$1601a8c0@devbox> |
> -----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.