Friday, January 4, 2013

How to check the loaded bundles in an OSGi container

Server with the OSGi container should be run with the option -DosgiConsole.
$ ./ -DosgiConsole
After the startup we can issue the following command.
osgi> ss
This will display all the bundles loaded in to the OSGi container. We can filter the results by specifying a string.
osgi> ss sts

Framework is launched.

id    State       Bundle
187    ACTIVE      org.wso2.carbon.identity.sts.mgt_4.0.3
188    ACTIVE      org.wso2.carbon.identity.sts.mgt.stub_4.0.0
189    ACTIVE      org.wso2.carbon.identity.sts.mgt.ui_4.0.3
190    ACTIVE      org.wso2.carbon.identity.sts.passive_4.0.3
191    ACTIVE      org.wso2.carbon.identity.sts.passive.stub_4.0.0
192    ACTIVE      org.wso2.carbon.identity.sts.passive.ui_4.0.3
193    ACTIVE      org.wso2.carbon.identity.sts.store_4.0.3
264    ACTIVE      org.wso2.carbon.sts_4.0.5
265    ACTIVE      org.wso2.carbon.sts.stub_4.0.0
266    ACTIVE      org.wso2.carbon.sts.ui_4.0.1

No comments: