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
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| issue.field.bugzillaimportkey | 1742 | 23188 |
| Assignee | Werner Guttmann [ wguttmn ] | Ralf Joachim [ rjoachim ] |
| Original Estimate | 172800 | |
| Bugzilla Id | 1742 | |
| Fix Version/s | 0.9.7 [ 11660 ] | |
| Remaining Estimate | 2 days [ 172800 ] | |
| 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. |
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. |
| Environment |
Operating System: other Platform: Other |
Operating System: other Platform: Other |
| Link |
This issue is depended upon by |
| Link |
This issue is depended upon by |
| Link |
This issue is depended upon by |
| Attachment | patch-C881-20050511.txt [ 15252 ] |
| Resolution | Fixed [ 1 ] | |
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |
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.