equinox的osgi命令
控制osgi framework的命令:launch - start the OSGi Framework
shutdown - shutdown the OSGi Framework
close - shutdown and exit
exit - exit immediately (System.exit)
init - uninstall all bundles
setprop <key>=<value> - set the OSGi property
控制bundle的命令:
install - install and optionally start bundle from the given URL
uninstall - uninstall the specified bundle(s)
start - start the specified bundle(s)
stop - stop the specified bundle(s)
refresh - refresh the packages of the specified bundles
update - update the specified bundle(s)
status [-s [<comma separated list of bundle states>] [<segment of bsn>]] - display installed bundles and registered services
ss [-s [<comma separated list of bundle states>] [<segment of bsn>]] - display installed bundles (short status)
services {filter} - display registered service details
packages {<pkgname>|<id>|<location>} - display imported/exported package details
bundles [-s [<comma separated list of bundle states>] [<segment of bsn>]] - display details for all installed bundles
bundle (<id>|<location>) - display details for the specified bundle(s)
headers (<id>|<location>) - print bundle headers
log (<id>|<location>) - display log entries
一般啟動(dòng)好osgi后,我們會(huì)用ss命令來看看當(dāng)前bundles的啟動(dòng)狀態(tài)
用install命令把開發(fā)好的bundle部署到osgi中
用update命令更新已經(jīng)部署的bundle
用uninstall命令停止一個(gè)bundle的服務(wù)
posted on 2008-05-14 09:49 pony 閱讀(3257) 評(píng)論(0) 編輯 收藏 所屬分類: Java