|
Running an RCP application as a simple OSGi bundle -
11-28-2008, 09:00 AM
I want to know if is it possible to run an eclipse RCP application as a simple OSGi bundle using equinox start command from its console (without deploying it as an eclipse product). I want to do the following from the equinox console:
> install /path/to/bundle1 /* this is actually a legacy java application which will consume services from my RCP app next*/
> start [bundle1]
> install /path/to/rcpbundle /* I managed to do this but the application workbench did not appear: the activator has no reference to the Application class*/
> start [rcbbundle] /* I want to run the application but of course only the start method of the activator got run: so no app and no gui*/
The context (About my applications and what I aim doing):
I have two applications: The first one is a legacy application developed using Swing. The second one is an RCP application that will offer some services to the first one (graphical editor). In order to integrate both applications, I chose to use OSGI as a middlewar (the fact that my RCP application is OSGi bundle already). I changed the old application so it can run inside the osgi framework and everything was ok. I succeeded in running the swing application as a bundle after running my RCP application as a product (the reverse order: the first app should load the second one (the RCP app) as needed :s ).
I'll be glad to post further details or clarifications if needed. Thank you in advance.
|