}
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);
}
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());}