Switichin between different Jpred installations
[proteocache.git] / server / compbio / listeners / ContextListener.java
index f673e30..f862a2f 100644 (file)
@@ -91,8 +91,13 @@ public class ContextListener implements ServletContextListener {
 
                if (READ_WEB_JPRED) {
                        // get data from real Jpred production server
-                       final String datasrc = "http://www.compbio.dundee.ac.uk/www-jpred/results/usage-new/alljobs.dat";
-                       final String prefix = "http://www.compbio.dundee.ac.uk/www-jpred/results";
+                       String theprefix = ph.getProperty("cassandra.jpred.web.prefix");
+                       if (null == theprefix) {
+                               theprefix = "http://www.compbio.dundee.ac.uk/www-jpred/results";
+                       }
+                       
+                       final String datasrc = theprefix + "/usage-new/alljobs.dat";
+                       final String prefix = theprefix;
                        final JpredParserHTTP parser = new JpredParserHTTP(prefix);
 
                        int initialdelay = 300;