Clean database & small changes
[jabaws.git] / webservices / compbio / stat / collector / StatDB.java
index 08b99f9..f9f5e1a 100644 (file)
@@ -338,9 +338,15 @@ public class StatDB {
                        log.info("Database shut down normally");\r
                }\r
        }\r
-       public static void main(String[] args) throws SQLException {\r
+       public static void main(String[] args) {\r
                // This is called from Ant cleanStatTable task\r
-               clearStatTable();\r
+               try {\r
+                       clearStatTable();\r
+                       shutdownDBServer();\r
+               } catch (SQLException e) {\r
+                       System.err.println("Fails to clean up JABAWS stat database!");\r
+                       e.printStackTrace();\r
+               }\r
                // new StatDB().createStatTable();\r
                // insertData(null);\r
                /*\r