directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r290883 - /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryService.java
Date Thu, 22 Sep 2005 04:00:20 GMT
Author: trustin
Date: Wed Sep 21 21:00:15 2005
New Revision: 290883

URL: http://svn.apache.org/viewcvs?rev=290883&view=rev
Log:
Fixed afterStartup hook method is invoked even if startup process failed.

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryService.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryService.java
URL: http://svn.apache.org/viewcvs/directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryService.java?rev=290883&r1=290882&r2=290883&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/jndi/DefaultContextFactoryService.java
Wed Sep 21 21:00:15 2005
@@ -197,18 +197,13 @@
         this.startupConfiguration = cfg;
         
         listener.beforeStartup( this );
-        try
-        {
-            initialize();
-            firstStart = createBootstrapEntries();
-            createTestEntries();
-            this.serviceListener = listener;
-            started = true;
-        }
-        finally
-        {
-            listener.afterStartup( this );
-        }
+
+        initialize();
+        firstStart = createBootstrapEntries();
+        createTestEntries();
+        this.serviceListener = listener;
+        started = true;
+        listener.afterStartup( this );
     }
 
     public synchronized void sync() throws NamingException



Mime
View raw message