producer XML configuration support: Producers can be set up using an XML input
[mir.git] / source / mircoders / servlet / ServletModuleOpenIndy.java
index 4d275ce..82ac417 100755 (executable)
@@ -158,10 +158,17 @@ public class ServletModuleOpenIndy extends ServletModule
         }
         else {
           DatabaseContent.getInstance().setUnproduced("id="+aid);
+
+
+          try {
+            EntityComment comment = (EntityComment) DatabaseComment.getInstance().selectById(id);
+            MirGlobal.localizer().openPostings().afterCommentPosting(comment);
+          }
+          catch (Throwable t) {
+            throw new ServletModuleException(t.getMessage());
+          }
           
-          EntityComment comment = (EntityComment) DatabaseComment.getInstance().selectById(id);
           
-          MirGlobal.localizer().openPostings().afterCommentPosting(comment);
           
         }
 
@@ -503,13 +510,17 @@ public class ServletModuleOpenIndy extends ServletModule
       contentEnt.setValueForProperty("is_published","1");
       contentEnt.update();
 
-      MirGlobal.localizer().openPostings().afterContentPosting(contentEnt);
 
 
       //dereference mp. -mh
       mp=null;
 
-
+      try {
+        MirGlobal.localizer().openPostings().afterContentPosting(contentEnt);
+      }
+      catch (Throwable t) {
+        throw new ServletModuleException(t.getMessage());
+      }
     }
     catch (IOException e) { throw new ServletModuleException("IOException: "+ e.toString());}
     catch (StorageObjectException e) { throw new ServletModuleException("StorageObjectException" + e.toString());}