I have the following database configuration file
containing one jdo mapping file 'demo-jdo1.xml':
<database name="care4u" engine="sapdb">
<driver
class-name="com.sap.dbtech.jdbc.DriverSapDB"
url="jdbc:sapdb://pclab/telecare">
<param name="user" value="telecare" />
<param name="password" value="telecare" />
</driver>
<mapping href="/home/Software/demo-jdo1.xml" />
</database>
My program starts and loads succesfully this file and
everything goes as expected. During runtime (i.e.,
without having to stop my program and restart it
again), I want to include another mapping file, so I
make my program load the configuration file which now
looks like:
<database name="care4u" engine="sapdb">
<driver
class-name="com.sap.dbtech.jdbc.DriverSapDB"
url="jdbc:sapdb://pclab/telecare">
<param name="user" value="telecare" />
<param name="password" value="telecare" />
</driver>
<mapping href="/home/Software/demo-jdo1.xml" />
<mapping href="/home/Software/demo-jdo2.xml" />
</database>
The file is loaded succesfully (at least it looks like
it) however when I query on a class that is mapped in
'demo-jdo2.xml' I get an exception:
org.telecare.core.exception.JdoCastorException:
org.exolab.castor.jdo.ClassNotPersistenceCapableException:
The class demo.Address is not persistence capable: no
mapping was defined for the class
Class 'demo.Address' is well mapped in 'demo-jdo2.xml'
but it seems that this mapping file has not been
really loaded, and only the mappings defined in
'demo-jdo1.xml' (which is probably cached in memory)
is (re)used during my query. So how to force Castor to
reload a database configuration file which has changed
(in my case by adding another mapping file)? Any help
would be greatly appreciated.
Regards,
wy
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev