Merge of BRANCHES/DEV/4.2_ENT_DEV/ADMIN_CONSOLE2 - Admin Console 46775:47636

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@47742 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2013-03-07 11:36:01 +00:00
parent 0831ef655a
commit b86cd5e5b2
8 changed files with 242 additions and 154 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
* Copyright (C) 2005-2013 Alfresco Software Limited.
*
* This file is part of Alfresco
*
@@ -291,9 +291,26 @@ public class DefaultChildApplicationContextManager extends AbstractPropertyBacke
*/
public void start()
{
boolean oneSuccess = false;
RuntimeException lastError = null;
for (String instance : getInstanceIds())
{
getApplicationContext(instance);
try
{
getApplicationContext(instance);
oneSuccess = true;
}
catch (RuntimeException e)
{
// One of the subsystems failed to initialize. The cause would have been logged. Treat this as
// non-fatal
lastError = e;
}
}
// If we weren't able to start any subsystems, then pass on the last error
if (lastError != null && !oneSuccess)
{
throw lastError;
}
}