This is the exact code from the OSGI core spec document: void launch( String factoryName, File[] bundles ) throws Exception { Map p = new HashMap(); p.put( "org.osgi.framework.storage", System.getProperty("user.home") + File.separator+"osgi");
FrameworkFactory factory = (FrameworkFactory) Class.forName( factoryName ) .newInstance(); Framework framework = factory.newFramework(p); framework.init(); BundleContext context = framework.getBundleContext(); for ( File bundle : bundles ) context.installBundle( bundle.toURL().toString() ); framework.start(); framework.waitForStop(0); } "p" in this listing is what was being referred to as "configurationProperties" in the SO sample. - Ray On Sat, Aug 16, 2014 at 12:47 PM, rcbandit <peter.pen...@gmail.com> wrote: > Could you please show me some code example? I can't make it work. > > > > -- > View this message in context: > http://apache-felix.18485.x6.nabble.com/Felix-reset-cache-dir-tp5009457p5009502.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > -- *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile> (@rotty3000) Senior Software Architect *Liferay, Inc.* <http://www.liferay.com> (@Liferay)