james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Jackson" <foamd...@gmail.com>
Subject Re: Accessing JdbcDataSource config in custom service
Date Mon, 01 Oct 2007 07:41:39 GMT

> Do you need access to the database-connection block or simply you want
> to manage repositories via the MailRepository interface?

I want access to the underlying db connection so that I can execute a
preparedstatement, I don't want to treat the data as mail, just as a

> In both cases you have to declare a new dependency in your xinfo file:
> database-connection:
> <dependency>
> <service
> name="org.apache.avalon.cornerstone.services.datasources.DataSourceSelector"
> version="1.0" />
> </depedency>

Ok, I'll give this a try


To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message