[Yanel-commits] rev 28412 - public/yanel/trunk/src/core/java/org/wyona/yanel/core/map

michi at wyona.com michi at wyona.com
Fri Nov 2 16:41:14 CET 2007


Author: michi
Date: 2007-11-02 16:41:13 +0100 (Fri, 02 Nov 2007)
New Revision: 28412

Modified:
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmManager.java
Log:
do not throw exception if a realm cannot be registered but log it

Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmManager.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmManager.java	2007-11-02 15:36:46 UTC (rev 28411)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/map/RealmManager.java	2007-11-02 15:41:13 UTC (rev 28412)
@@ -234,7 +234,9 @@
                     String errorMsg = "Error setting up realm [" + realmId + "]: " + realmConfigFile 
                         + ": " + e;
                     log.error(errorMsg, e);
-                    throw new ConfigurationException(errorMsg, e);
+                    // NOTE: Do not throw an exception, because otherwise all other realms are not being loaded either
+                    // TODO/TBD: Maybe one should enhance Realm by a method such as setStatus() and getStatus() in order to check if a realm has been registered successfully or not!
+                    //throw new ConfigurationException(errorMsg, e);
                 }
             }
         } catch (Exception e) {



More information about the Yanel-commits mailing list