[MOBY-guts] biomoby commit

Paul Gordon gordonp at dev.open-bio.org
Mon Aug 17 21:48:25 UTC 2009


gordonp
Mon Aug 17 17:48:24 EDT 2009
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv26326/src/main/ca/ucalgary/seahawk/gui

Modified Files:
	MobyContentPane.java 
Log Message:
Randomized port for wrapping servlet to avoid problems when multiple people are wrapping at the same time on a single machine (e.g. a server)
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobyContentPane.java,1.20,1.21
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java	2009/08/17 21:24:29	1.20
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobyContentPane.java	2009/08/17 21:48:24	1.21
@@ -92,7 +92,11 @@
     
     private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(MobyContentPane.class);
     private static SoapServlet soapServlet;
-    private final int portNum = 8254;
+
+    // Randomize the port used for the wrapping servlet: avoids problems 
+    // when multiple people are wrapping on the same machine
+    private final int portNum = 8254+((int) (1000*Math.random()));
+
     private final static String servletPath = "/SOAPServlet";
     private static Acme.Serve.Serve servletContainer;
     private static Map<String,MobyContentGUI> id2GuiMap;




More information about the MOBY-guts mailing list