You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2007/10/17 19:52:45 UTC

svn commit: r585605 - /ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

Author: doogie
Date: Wed Oct 17 10:52:44 2007
New Revision: 585605

URL: http://svn.apache.org/viewvc?rev=585605&view=rev
Log:
Start the listener thread as soon as possible, so that the startup
status can be queried.  Before, it would be started very late in the
process, so it wasn't possible to see if java/ofbiz was actually
running.  Closes https://issues.apache.org/jira/browse/OFBIZ-1293

Modified:
    ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java

Modified: ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java?rev=585605&r1=585604&r2=585605&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java (original)
+++ ofbiz/trunk/framework/base/src/start/org/ofbiz/base/start/Start.java Wed Oct 17 10:52:44 2007
@@ -152,17 +152,12 @@
             this.serverThread = new Thread(this, this.toString());
             this.serverThread.setDaemon(false);
             System.out.println("Admin socket configured on - " + config.adminAddress + ":" + config.adminPort);
+            this.serverThread.start();
         } else {
             System.out.println("Admin socket not configured; set to port 0");
         }
     }
 
-    private void startListenerThread() {
-        if (serverSocket != null && serverThread != null) {
-            this.serverThread.start();
-        }
-    }
-
     private void loadLibs(String path, boolean recurse) throws IOException {
         File libDir = new File(path);
         if (libDir.exists()) {
@@ -307,9 +302,6 @@
     }
 
     private void startServer() {
-        // start the listener thread
-        startListenerThread();
-
         // start the startup loaders
         startStartLoaders();
     }