Can you interact with the OSGi container after running a bundle?

I'm working with the new OSGi support in Maia.

I am running a bundle and the Run window output says my bundle is started. Is there any way to issue a command to the OSGi container? I'd like to try uninstalling something or just working with the container. It doesn't look like I can do this.

3 comments
Comment actions Permalink

Hi Hamlet,  If you are using Equinox you can enable the Equinox console on the framework properties page of the run configuration. Once the application is up and running, presss ENTER inside the console tool window and you will be presented with an OSGi prompt. Type "help" to get a list of available commands.  We don't have such support for other OSGi implementations since AFAIK they don't have such a buildin consolefeature and we would need to implement it ourselves. I'm currently on vacation with limited internet access, but once I'm back next week, I'll be available to answer questions in more detail.  Best regards,  Robert

0
Comment actions Permalink

This doesn't work in Maia 10781, I created an issue for this: http://youtrack.jetbrains.net/issue/IDEA-25085

0
Comment actions Permalink

I have tried "-Dosgi.noShutdown=true" VM argument with Equinox. It will prevent process from termination.

Console works perfect.

You can try "-noExit" parameter as well.

0

Please sign in to leave a comment.