Bundle Monitor
BundleMonitor is a plug-in for Eclipse that allows you to view and manipulate OSGi bundles, services and configurations in the running Eclipse instance. It works in Eclipse RCP applications as well as IDE or SDK-based applications. It provides three views: Bundles, Services and Configuration.
Download
You can install BundleMonitor using Eclipse’s built-in update mechanism:
- Open Help > Software Updates… from the main menu.
- Select the Available Software tab.
- Click Add Site… and copy the following URL:
- Expand the new entry and tick the Bundle Monitor Feature.
- Click Install… and follow the rest of the installation wizard.
http://neilbartlett.name/downloads/bundlemonitor/site.xml
Opening the Views
The views offered by the plug-in can be opened by opening the Window menu and selecting Show View > Other…. The view selection dialog will open. Navigate to OSGi Runtime and select the view(s) you wish to use.
Bundles View
The Bundles view shows all of the installed bundles in the running OSGi framework along with their states and locations. You can filter the displayed bundles based on their state by dropping down the view menu (small down-arrow on the toolbar), or you can filter based on the symbolic name by toggling the Filter button (
) on the view toolbar and typing part of the name.
Via the toolbar you can also install new bundles from a file or from an arbitrary URL, and attempt to resolve all unresolved bundles. By right-clicking on a bundle from the list you can view its properties, resolve it, start/stop it, uninstall it or diagnose resolution problems.
Services View
The Services view shows all of the registered services. The first column shows the service interface name and the right column shows the symbolic name of the bundle that registered the service. Each entry expandable to show the service properties.
Like the Bundles view, you can filter the displayed services based on all or part of the interface name by toggling the Filter button on the view toolbar.
Configuration View
The Configuration view allows you to view, create and edit configuration entries as defined by the Configuration Admin (CM) specification (OSGi Services Compendium, Section 104). Note that this view requires an implementation of the CM bundle to be installed and running. You can obtain a CM implementation from the Equinox download page by downloading either the individual bundle org.eclipse.equinox.cm or the complete Equinox or Equinox SDK zip (version 3.4 or higher). Once the CM bundle is installed, use the Bundles view to ensure it is active.
The main view shows a list of configuration entries, with the PID in the left column and the bound bundle location in the right column. Each entry is expandable to show the properties of the configuration, i.e., the dictionary content. The displayed configurations can be filtered based on all or part of the PID by toggling the Filter button on the view toolbar.
Via the toolbar you can also delete or create configuration entries. When a configuration entry is created you will be asked for a PID — note that entering a PID that already exists will result in editing the existing configuration for that PID, which is the usual behaviour in Configuration Admin. In the PID entry dialog you can specify that you are creating a factory configuration, in which case the PID entered will be interpreted as the Factory PID — the specific PID of the new entry will be generated by the CM implementation.
After creating a configuration it will be opened in a text editor for editing. You can also edit an existing configuration entry by double-clicking it in the main Configuration view. When the text editor is saved, the contents will be immediately parsed as a Java Properties file, and the result passed to CM. The editor does not use a temporary file, you are directly editing the configuration object held by CM.
Source Code
BundleMonitor is licensed under the Eclipse Public Licence (EPL). The source code is available from the Git repository at git://github.com/njbartlett/bundlemonitor.git. For help using Git, see GitHub’s guide page.
UPDATE: If you can’t or don’t want to use Git to pull the source code, you can download a snapshot as a ZIP or tarball from the GitHub project page. Go to http://github.com/njbartlett/bundlemonitor and click the Download button near the top of the page.
Bugs and Enhancements
Report bugs or request enhancements using the bug tracker. Please be sure to select the “BundleMonitor” project when reporting an issue.






teguise:
I can“t download bundlemonitor pluggin
November 10, 2008, 11:52 amhgomez:
Could you provide sources as a tar ball, couldn’t get it via git plugin.
Thanks
November 14, 2008, 8:56 amNeil:
@teguise: Please could you tell me what the error is? The download is still available.
@hgomez: GitHub allows you to download the current sources as a zip or tarball. Go to http://github.com/njbartlett/bundlemonitor and click the Download button near the top of the page.
Regards, Neil
November 19, 2008, 2:49 pmBrightChen7:
The github can not download the src there is a error in the website, maybe Would you mind send me a copy of source as a zip by email just for learning
November 21, 2008, 1:44 pmMichele:
Hi Neil, I’ve installed your Bundle Monitor plugin in Eclipse 3.4.1 an it works fine except for the Configuration View. I’ve downloaded the org.eclipse.equinox.cm (org.eclipse.equinox.cm_1.0.0.v20080509-1800.jar) and put the jar under eclipse’s plugins directory. Eclipse recognise the plugin and I can see it up and running through the Bundle View but when I switch to the Configuration View at the bottom of the view there is a message says “Configuration Admin service unavailable”. What’s wrong? Did I miss anything? Nonetheless it’s useful
Cheers.
December 8, 2008, 11:15 pmNeil:
Michele, as the instructions state, the Configurations view requires an instance of the Configuration Admin service to be present in the framework.
Since you don’t have Config Admin running it’s unlikely that you’re using Config Admin in your application, so you won’t have any need for this view.
Regards Neil
February 14, 2009, 9:43 amRay:
I recently tried to update the bundle monitor in my Eclipse 3.4 installation, and got an error instead.
After it showed me the dialog telling me that the feature has updates available, it then proceeds to start downloading. At some point it pops up a message box with this error:
An error occurred while collecting items to be installed No repository found containing: name.neilbartlett.eclipse.bundlemonitor/osgi.bundle/0.1.0.200904032227 No repository found containing: name.neilbartlett.eclipse.bundlemonitor.feature/org.eclipse.update.feature/0.1.0.200904032227 No repository found containing: name.neilbartlett.eclipse.bundlemonitor.swt/osgi.bundle/0.0.1.200904032227
June 23, 2009, 2:56 pm[galileo] Cool Views to control Plug-ins (IDE) « ekkes-corner: eclipse | osgi | mdsd | erp:
[...] another Bundle available: Neil’s Bundle Monitor. You can install the Bundle Monitor [...]
July 3, 2009, 6:43 amScott Lewis:
Hi Neil,
Nice stuff. I/ECF are interested in using config admin in future versions of ECF, and am hopeful that there will be some good UI for it in future versions of Eclipse (probably PDE is the right home I suppose). Have you considered/discussed with anyone contributing BundleMonitor (at least the configuration admin UI) to Eclipse? Would you be interested in doing such a thing?
July 10, 2009, 11:08 pmNeil:
@Scott,
Great, glad you like it!
No I haven’t discussed contributing this to Eclipse but I’d be very happy to do so. You’ll notice that it’s licensed under the EPL already.
Regards, Neil
July 10, 2009, 11:16 pm