[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] Launch an NEW OSGi framework inside a RCP

In Equinox 3.5 you can use the EquinoxFactory to create a new org.osgi.framework.launch.Framework instance.

import org.osgi.framework.launch.*;
import org.eclipse.osgi.launch.*;

FrameworkFactory factory = new EquinoxFactory();
Framework framework = factory.newFramework(null);

Also see, (http://www.osgi.org/javadoc/r4v42/org/osgi/framework/launch/package-summary.html).

Hope that helps.

Tom



Inactive hide details for Shin ---12/10/2009 10:52:05 PM---Hi all,Shin ---12/10/2009 10:52:05 PM---Hi all,


From:

Shin <shenvv@xxxxxxxxx>

To:

equinox-dev@xxxxxxxxxxx

Date:

12/10/2009 10:52 PM

Subject:

[equinox-dev] Launch an NEW OSGi framework inside a RCP




Hi all,
 
I'm trying to launch an OSGi framework(Equinox) inside the RCP, and get the BundleContext of the new framework.
But when I use "EclipseStarter.run()", it throws an exception says "Platform already running".
I know that this EclipseStarter associated with the OSGi Platfrom which runs the RCP, so the platform is already running.
Is it possible to launch an NEW OSGi framework inside a Bundle?
 
Thank!
 
Daniel_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


GIF image

GIF image