blob: 464805e3c55d1fbd3f8b24d5a85bfcb26618954e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2010 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package @@BUNDLE_SERVER_NAME@@;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.scout.commons.logger.IScoutLogger;
import org.eclipse.scout.commons.logger.ScoutLogManager;
/**
* Dummy application in order to manage server side product configurations in *.product files.
* A typical config.ini for such a product has (among others) the following properties:
* osgi.clean=true
* osgi.console=
* eclipse.consoleLog=true
* org.eclipse.equinox.http.jetty.http.port=8080
* org.eclipse.equinox.http.jetty.context.path=/@@ALIAS@@
* osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@start, org.eclipse.equinox.http.jetty@start, org.eclipse.equinox.http.registry@start, org.eclipse.core.runtime@start
* osgi.bundles.defaultStartLevel=4
* osgi.noShutdown=true
* eclipse.ignoreApp=false
* eclipse.product=@@BUNDLE_SERVER_NAME@@.product
*/
public class ServerApplication implements IApplication{
private static IScoutLogger logger=ScoutLogManager.getLogger(ServerApplication.class);
public Object start(IApplicationContext context) throws Exception {
//start the scheduler
/*
ScoutScheduler scheduler=new ScoutScheduler(Activator.getDefault().getBackendSubject(),ServerSession.class);
scheduler.addJob(new LoadJobs());
scheduler.start();
Activator.getDefault().setScheduler(scheduler);
*/
logger.info("@@ALIAS@@ server initialized");
return EXIT_OK;
}
public void stop() {}
}