Montag, 7. Juni 2010

OSGi Console Services and Filter

In the Equinox OSGi Console with the command services all running services will be listed. When you like to filter you can use the OSGi Filter Syntax. The filter I use often is services (objectClass=com.github.tux2323*) then all services which starts with the Java package com.github.tux2323 will be listed.

Example:
osgi> services (objectClass=com.github.tux2323*)
{com.github.tux2323.demo.chat.server.ChatServer}={service.id=26}
  Registered by bundle: com.github.tux2323.demo.chat.server_1.0.0.qualifier [1]
  No bundles using service.

A nice german article from Heiko Seeberger about OSGi filter can be found here.

Keine Kommentare:

Kommentar veröffentlichen