How to install / uninstall OSGI bundles in WSO2 Carbon.

Download and extract WSO2 Carbon []

wso2carbon-core-3.2.0-SNAPSHOT/bin$ ./ -DosgiConsole

Check the Bundle status

osgi> ss

Framework is launched.

id    State       Bundle
0    ACTIVE      org.eclipse.osgi_3.5.0.v20090520
Fragments=1, 2, 3
1    RESOLVED    geronimo-jta_1.1_spec_1.1.0.wso2v1

Install Bundle

osgi> install file:/<file path>/<file name>

Bundle id is 134

133    ACTIVE      xmlbeans_2.3.0.wso2v1
134    INSTALLED   org.wso2.carbon.hdfs_0.1.0.SNAPSHOT

Check status of the Bundle


135    INSTALLED   hadoop-core_0.20.2.wso2v1

Start Bundle
osgi> start 135

135    ACTIVE      hadoop-core_0.20.2.wso2v1

Stop Bundle

osgi> stop 135

osgi> ss

135    RESOLVED    hadoop-core_0.20.2.wso2v1