Pascal,

excuse my ignorance, but how would the below Castor configuration make a connection 
pool available ?
The Castor documentation at http://castor.exolab.org/database-conf.html says

<quote>
The data-source element specifies the JDBC 2.0 DataSource for obtaining new 
connections to the
database server. DataSources are defined in the JDBC 2.0 standard extension API which 
is included with
Castor, and implement the interface javax.sql.DataSource.
</quote>

Below config, imho, creates a javax.sql.DataSource for Castor's internal use using 
IBM's DB2DataSource
as the underlying implementation. The problem is that DB2DataSource does *not* provide 
for connection
pooling as it creates a new connection each and everytime Castor (or you) call 
getConnection().

I hope this helpsclarifies some issues ...

Thanks
Werner

Pascal Gheeraert wrote:

> Hi,
>
> Here is my XML config File. It uses DataSource, but NOT through JNDI.
> 2 Advantages for that:
> * U got a Pooled Connection
> * U don't have to lauch the server
> 
>--------------------------------------------------------------------------------------------------
> <!DOCTYPE database SYSTEM "jdo-conf.dtd">
> <database name="rssdb" engine="db2">
>        <data-source class-name = "COM.ibm.db2.jdbc.DB2DataSource">
>        <params
>                    description="datasource for rssDb"
>                    databaseName="rssdb"
>                    user="userid"
>                    password="password"
>        />
>        </data-source>
>        <mapping href="Rssmapping.xml" />
> </database>
>
> Hope this helps!
> Have a nice Day.
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to