summaryrefslogtreecommitdiff
path: root/java/src/IceBox/ServiceManagerI.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-01-11 14:33:02 -0800
committerMark Spruiell <mes@zeroc.com>2012-01-11 14:33:02 -0800
commitcbf2de574172dc075d6a18d407a95d18d6694fa3 (patch)
treecc494b9023fcc7daa119c49c423d05cc68bfcc23 /java/src/IceBox/ServiceManagerI.java
parentminor fix to slice2freezej --depend-xml (diff)
downloadice-cbf2de574172dc075d6a18d407a95d18d6694fa3.tar.bz2
ice-cbf2de574172dc075d6a18d407a95d18d6694fa3.tar.xz
ice-cbf2de574172dc075d6a18d407a95d18d6694fa3.zip
ICE-4771 - IceBox fixes
Diffstat (limited to 'java/src/IceBox/ServiceManagerI.java')
-rw-r--r--java/src/IceBox/ServiceManagerI.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/java/src/IceBox/ServiceManagerI.java b/java/src/IceBox/ServiceManagerI.java
index 09cd7c4b51b..9ce3572cfa0 100644
--- a/java/src/IceBox/ServiceManagerI.java
+++ b/java/src/IceBox/ServiceManagerI.java
@@ -246,7 +246,7 @@ public class ServiceManagerI extends _ServiceManagerDisp
// will most likely need to be firewalled for security reasons.
//
Ice.ObjectAdapter adapter = null;
- if(!properties.getProperty("IceBox.ServiceManager.Endpoints").equals(""))
+ if(properties.getProperty("IceBox.ServiceManager.Endpoints").length() != 0)
{
adapter = _communicator.createObjectAdapter("IceBox.ServiceManager");
@@ -260,7 +260,7 @@ public class ServiceManagerI extends _ServiceManagerDisp
// Parse the property set with the prefix "IceBox.Service.". These
// properties should have the following format:
//
- // IceBox.Service.Foo=Package.Foo [args]
+ // IceBox.Service.Foo=[jar-or-dir:]Package.Foo [args]
//
// We parse the service properties specified in IceBox.LoadOrder
// first, then the ones from remaining services.
@@ -425,11 +425,6 @@ public class ServiceManagerI extends _ServiceManagerDisp
_communicator.waitForShutdown();
Ice.Application.defaultInterrupt();
-
- //
- // Invoke stop() on the services.
- //
- stopAll();
}
catch(FailureException ex)
{
@@ -439,7 +434,6 @@ public class ServiceManagerI extends _ServiceManagerDisp
ex.printStackTrace(pw);
pw.flush();
_logger.error(sw.toString());
- stopAll();
return 1;
}
catch(Throwable ex)
@@ -449,9 +443,15 @@ public class ServiceManagerI extends _ServiceManagerDisp
ex.printStackTrace(pw);
pw.flush();
_logger.error("ServiceManager: caught exception:\n" + sw.toString());
- stopAll();
return 1;
}
+ finally
+ {
+ //
+ // Invoke stop() on the services.
+ //
+ stopAll();
+ }
return 0;
}