summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-09-28 14:25:49 (EDT)
committerEike Stepper2007-09-28 14:25:49 (EDT)
commit72dc546e86b2450d5f1cf48b5029636765049cca (patch)
treed64a160f6a76c3e1c5fcc5426e783aedfb76974a
parent13ee19f97400269dadb6a06a34174efe7a30d842 (diff)
downloadcdo-72dc546e86b2450d5f1cf48b5029636765049cca.zip
cdo-72dc546e86b2450d5f1cf48b5029636765049cca.tar.gz
cdo-72dc546e86b2450d5f1cf48b5029636765049cca.tar.bz2
[204887] Provide CDOServer product
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204887
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOServerApplication.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOServerApplication.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOServerApplication.java
index 7c0b37d..80d5e67 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOServerApplication.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/internal/server/bundle/CDOServerApplication.java
@@ -43,24 +43,36 @@ public class CDOServerApplication extends OSGiApplication
protected void doStart() throws Exception
{
super.doStart();
+ OM.LOG.info("CDO Server starting");
File configFile = OMPlatform.INSTANCE.getConfigFile("cdo-server.xml");
if (configFile != null && configFile.exists())
{
RepositoryConfigurator repositoryConfigurator = new RepositoryConfigurator(IPluginContainer.INSTANCE);
repositories = repositoryConfigurator.configure(configFile);
+ if (repositories == null || repositories.length == 0)
+ {
+ OM.LOG.warn("No repositories configured");
+ }
Net4jConfigurator net4jConfigurator = new Net4jConfigurator(IPluginContainer.INSTANCE);
acceptors = net4jConfigurator.configure(configFile);
+ if (acceptors == null || acceptors.length == 0)
+ {
+ OM.LOG.warn("No acceptors configured");
+ }
}
else
{
OM.LOG.warn("CDO server configuration not found: " + configFile.getAbsolutePath());
}
+
+ OM.LOG.info("CDO Server started");
}
@Override
protected void doStop() throws Exception
{
+ OM.LOG.info("CDO Server stopping");
if (acceptors != null)
{
for (IAcceptor acceptor : acceptors)
@@ -77,6 +89,7 @@ public class CDOServerApplication extends OSGiApplication
}
}
+ OM.LOG.info("CDO Server stopped");
super.doStop();
}
}