Run Your Exported OSGi Bundle Using CLI

From CDOT Wiki
Revision as of 13:16, 30 January 2011 by Selmys (talk | contribs) (Created page with '== Run Your Exported OSGi Bundle Using CLI == First, start your OSGi server and then enter 'ss' at the osgi> prompt. left|thumb<br style="clear:left;" />…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Run Your Exported OSGi Bundle Using CLI

First, start your OSGi server and then enter 'ss' at the osgi> prompt.

Bundle-16.png

Install your bundle making note of its ID number. Then type 'ss' to ensure your bundle is installed.

Bundle-17.png

Use the 'start' com and to run your bundle.

Bundle-18.png

Use the 'stop' command to stop your bundle. Use the 'uninstall' command to remove your bundle from the execution environment. Use the 'exit' command to leave the OSGi console.

Bundle-19.png

Congratulations! You've just run your exported OSGi bundle in a standalone execution environment.

OSGi Console Commands

  • bundle-level
  • headers
  • install
  • list
  • ls
  • refresh
  • resolve
  • restart
  • shutdown
  • start
  • start-level
  • stop
  • uninstall
  • update