Hi Oki, I've just commited a "userstore" proposal to jakarta-james. This includes an updated JDBC UsersRepository, which uses the Cornerstone DataSourceSelector block. So, database connections are configured in one spot for use in other components/blocks, as you wanted.
This should give you some pointers as to how to get started. ciao Daz On Wed, 15 Aug 2001 11:13, Oki DZ wrote: > Hi, > > Is there any plan to turn JdbcDataSource into an Avalon block? I tried to > use it in two Avalon blocks, and I had to put the configuration block > twice in the configuration file. Had I used it in 10 blocks, then I would > have to have 10 configuration blocks in the config file; not a nice > picture. > > There is such Avalon block in Cocoon. But using Cocoon when all you need > is just the db connection pooling is a bit overkill. I think such db conn. > pooling block belongs to Excalibur. > > Oki > ps: I have downloaded Cocoon 2, but I couldn't find > org.apache.cocoon.component.datasource.DataSourceComponent in the jar. > > > > > > > --------------------------------------------------------------------- > 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]
