I am missing some functionality to reset the database configuration completely
or remove a specific database entry from the cache. My case current problem has
been to reconnect to a database after changing the connection password. If I'm
not wrong, this is currently not possible without restarting the process, which
uses the castor library.
Following my (simple) workaround to achieve what I need - a public clear()
function in class DatabaseRegistry. I am already using this modified code for
my application. Sure this modification is not very elaborate, it's missing at
least some locking mechanism for synchronization.
retrieving revision 1.4
diff -u -p -d -r1.4 DatabaseRegistry.java
— engine/DatabaseRegistry.java 19 Jan 2004 11:52:47 -0000 1.4
+++ engine/DatabaseRegistry.java 27 Jan 2004 19:39:16 -0000
at at -395,4 +395,10 at at public class DatabaseRegistry
+ public static void clear()