X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.init%2Fsrc%2Forg%2Fargeo%2Finit%2Fosgi%2FOsgiRuntimeContext.java;h=268fb221b3e54796d46cea0775ba2e35bdf62258;hb=f92ba77466d18fcd0e7a9386ae0f16b530337f9f;hp=ecfeca74ee839a66b8b1df9dd9f9539752f79d9a;hpb=d297ee2399cf6e06b9dcfa0267521781f3559ec6;p=lgpl%2Fargeo-commons.git diff --git a/org.argeo.init/src/org/argeo/init/osgi/OsgiRuntimeContext.java b/org.argeo.init/src/org/argeo/init/osgi/OsgiRuntimeContext.java index ecfeca74e..268fb221b 100644 --- a/org.argeo.init/src/org/argeo/init/osgi/OsgiRuntimeContext.java +++ b/org.argeo.init/src/org/argeo/init/osgi/OsgiRuntimeContext.java @@ -96,12 +96,21 @@ public class OsgiRuntimeContext implements RuntimeContext, AutoCloseable { } OsgiBoot osgiBoot = new OsgiBoot(bundleContext); String frameworkUuuid = bundleContext.getProperty(Constants.FRAMEWORK_UUID); - new Thread("OSGi boot framework " + frameworkUuuid) { + + // separate thread in order to improve logging + Thread osgiBootThread = new Thread("OSGi boot framework " + frameworkUuuid) { @Override public void run() { osgiBoot.bootstrap(config); } - }.start(); + }; + osgiBootThread.start(); + // TODO return a completable stage so that inits can run in parallel +// try { +// osgiBootThread.join(60 * 1000); +// } catch (InterruptedException e) { +// // silent +// } } public void update() {