Difference between revisions of "Run Your Exported OSGi Bundle Using CLI"

From CDOT Wiki
Jump to: navigation, search
(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;" />…')
 
(No difference)

Latest revision as of 14:16, 30 January 2011

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