Details
Description
With the current CVS (9/14/04) when you try to load more then one jdo-conf file, castor does not recognize the second database in the second loaded file. The first configuration loads fine. The second configuration will load, but when you try a getDatabase() it throws the following exception:
org.exolab.castor.jdo.DatabaseNotFoundException: No configuration loaded for
database projects – use the JDO interface to load a configuration for this
database
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:569)
.....
I'm not sure how to write a test case for this, but all you have to do is load two different jdo-conf files and try and load/use the second database.
Issue Links
- is depended upon by
-
CASTOR-1111
Change documentation from JDO to JDOManager
-
Found out the problem is at the JDOConfLoader class where it can only handle one
jdo configuration, ever. This should be changed to be able to handle multiple,
escpeically in enterprise level apps, i can see many different database
connections needed.
Or, have a support for multiple database, but then it comes down to the
Transaction stuff and setting that up.