I've been using castor 0.9.5.3 successfully on tomcat with it's dbcp cache. Now I want to do two things:
1) switch to castor 0.9.6 2) use dbcp standalone without tomcat
I'm trying to figure out how the config file has to look like, I tried
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE databases PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version 1.0//EN" "http://castor.exolab.org/jdo-conf.dtd">
<database name="mydb" engine="oracle" >
<data-source class-name="org.apache.commons.dbcp.BasicDataSource">
<param name="url" value="jdbc:oracle:thin:@server.host.domain:1521:mydb" />
<param name="driver-class-name" value="oracle.jdbc.driver.OracleDriver" />
<param name="username" value="user" />
<param name="password" value="pass" />
<param name="max-active" value="10" />
</data-source>
<mapping href="castor-mapping.xml" />
</database>
which does not seem to work. It complains at line 4
"... unable to find Field Descriptor for 'data-source' in ClassDescriptor of jdo-conf ..."
Any ideas about that?
Cheers Andreas

