roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r574914 - /roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/jpa/JPAPlanetImpl.java
Date Wed, 12 Sep 2007 12:30:15 GMT
Author: snoopdave
Date: Wed Sep 12 05:30:15 2007
New Revision: 574914

URL: http://svn.apache.org/viewvc?rev=574914&view=rev
Log:
Planet init needs flush

Modified:
    roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/jpa/JPAPlanetImpl.java

Modified: roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/jpa/JPAPlanetImpl.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/jpa/JPAPlanetImpl.java?rev=574914&r1=574913&r2=574914&view=diff
==============================================================================
--- roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/jpa/JPAPlanetImpl.java
(original)
+++ roller/trunk/apps/planet/src/java/org/apache/roller/planet/business/jpa/JPAPlanetImpl.java
Wed Sep 12 05:30:15 2007
@@ -70,7 +70,21 @@
 
     @Override
     public void initialize() throws InitializationException {
+        
+        log.info("Initializing Roller Planet business tier");
+        
         getPropertiesManager().initialize();
+        getPlanetManager().initialize();
+        
+        // we always need to do a flush after initialization because it's
+        // possible that some changes need to be persisted
+        try {
+            flush();
+        } catch(PlanetException ex) {
+            throw new InitializationException("Error flushing after initialization", ex);
+        }
+        
+        log.info("Roller Planet business tier successfully initialized");
     }
     
     



Mime
View raw message