Steffen,
top of my memory, once you've made the changes to jdo-conf.xsd, you'll need to (selectively) run this XML Schema instance through the SourceGenerator and have a new Database.java generated. Copy this file to the org.exolab.castor.jdo.conf package, and look for (I believe) DatabaseRegistry.java (though I am not sure, to be honest), and look around for some code that deals with the Database element.
Werner
--Original Message Text---
From: Schlachter, Steffen (LDS)
Date: Mon, 10 Nov 2003 18:51:40 +0100
Hi!
I am trying to add a property (i.e. an attribut) to the database element of the database config file (database.xml), e.g.
<database name="mydb" engine="generic" timeout="111">
I was successful in rebuilding the jars but Castor did not seem to read the value from the config file.
What I did was:
- extend the Database class in the org.exolab.castor.jdo.conf package for an attribute timeout with public getters and setters
- add that attribute to the files jdo-conf.dtd and jdo-conf.xsd in the same package
Can anyone tell what else I will have to do. Obviously I do not really understand how the properties are read.
Cheers,
Steffen
- [castor-dev] changing castor jdo mapping file Schlachter, Steffen (LDS)
- Werner Guttmann
