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




|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Shin <[email protected]>                                                      
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[email protected]                                                      
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| 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
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to