From 72dc546e86b2450d5f1cf48b5029636765049cca Mon Sep 17 00:00:00 2001 From: Eike Stepper Date: Fri, 28 Sep 2007 18:25:49 +0000 Subject: [204887] Provide CDOServer product https://bugs.eclipse.org/bugs/show_bug.cgi?id=204887 --- .../cdo/internal/server/bundle/CDOServerApplication.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 7c0b37d403..80d5e6720e 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(); } } -- cgit v1.2.3