Merge branch 'ibm-trunk' into ueinfo_with_downcall_locking
diff --git a/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPServerStarterThreaded.java b/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPServerStarterThreaded.java
index fb2097c..81303b4 100644
--- a/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPServerStarterThreaded.java
+++ b/yoko-core/src/main/java/org/apache/yoko/orb/OB/GIOPServerStarterThreaded.java
@@ -86,6 +86,7 @@
 
         logger.fine("GIOPServer thread started " + this + " using acceptor " + acceptor); 
         try {
+            orbInstance_.getServerPhaser().register();
             //
             // Retrieve the thread group for the servers
             //
@@ -254,6 +255,7 @@
 
                 if (state_ == StateClosed) {
                     logger.fine("Shutting down server thread"); 
+                    orbInstance_.getServerPhaser().arrive();
                     break;
                 }
             }