partly working security: registration form, authorization, simple authentification
[proteocache.git] / server / compbio / listeners / ContextListener.java
index a1ff9cb..c3109a7 100644 (file)
@@ -11,8 +11,6 @@ import javax.servlet.annotation.WebListener;
 
 import org.apache.log4j.Logger;
 
-import com.datastax.driver.core.Session;
-
 import compbio.cassandra.CassandraNativeConnector;
 import compbio.cassandra.CassandraNewTableWriter;
 import compbio.cassandra.JpredParserHTTP;
@@ -31,7 +29,7 @@ public class ContextListener implements ServletContextListener {
        private ScheduledExecutorService localjob_scheduler;
        private ScheduledExecutorService update_scheduler;
        CassandraNativeConnector db = new CassandraNativeConnector();
-       static PropertyHelper ph = ProteoCachePropertyHelperManager.getPropertyHelper();
+       private static PropertyHelper ph = ProteoCachePropertyHelperManager.getPropertyHelper();
        private static Logger log = Logger.getLogger(ContextListener.class);
        public static boolean READ_WEB_JPRED = false;
        public static boolean READ_LOCALFILE_JPRED = false;
@@ -61,6 +59,7 @@ public class ContextListener implements ServletContextListener {
                FILL_NEWTABLE = initBooleanValue("cassandra.newtables.update");
 
                if (FILL_NEWTABLE) {
+                       System.out.println("Initializating new table update scheduler");
                        update_scheduler = Executors.newSingleThreadScheduledExecutor();
                        update_scheduler.schedule(new Runnable() {
                                @Override