OSGi Tips and Tricks

we keep discovering new things about programming with OSGI, we'll put some things here. If you have a problem or bug when programming, go to EclipseDevelopmentProblemsAndFixes to learn how to fix it.

Storing files

  • Each bundle has an area in the workspace providing persistent storage, use the BundleContext?.getDataFile(path) to get File objects in this space!

Bundles list on JSP

Sick and tired of using the cruddy OSGI console for starting your bundles?

"ss" output too long? (actually you can do "ss string" and only get bundles containing "string", but I digress)

Despair no longer! Update ETP, start nepomuk and go to: http://localhost:8181/config/bundles

Here you can see what bundles are loaded and start/stopping by clicking!

Only €4.99 from supported retailers, may format your harddrive and lead to amnesia