I've recently added "bind-xml" elements to the fields
in each mapping file in addition to the the "sql"
mapping elements in an effort to use Castor XML and
JDO for the same objects. I currently load the
mappings in a startup servlet via
JDO.setConfiguration(String path). I've gone down a
couple of paths trying to reuse the existing castor
mapping mechanism with the XML Marshaller, but haven't
been very successful. What is the recommended
approach for sharing a master mapping file between
Castor JDO & XML? Ideally I only need to process the
mapping file once.
I have a JDO database xml file that contains multiple
mappings:
<database name="myCastorDB" engine="mysql">
<jndi name="java:comp/env/jdbc/MyJDBCPool"/>
<mapping href="./WEB-INF/castor/MAPPING-A.xml"/>
<mapping href="./WEB-INF/castor/MAPPING-B.xml"/>
...
</database>
Can I use this file with the Mapping.loadMapping? Do
I need to loop through the "mapping" elements and call
Mapping.loadMapping seperately for use with the XML
side of castor?
Thanks,
Jon
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user