Yesterday we built two OSGi bundles using Maven.
And we have installed the Apache Felix
So now, we are going to install the OSGi bundles on Apache Felix.
1. Start the Apache Felix.
- java -jar bin\felix.jar
4. Now the Service listener example is registered. This service will echo a message whenever a new service is registered or unregistered. Let’s try it by starting and stopping the English dictionary service.
5. As you can see, we got 2 messages when we start and stop the English dictionary service.
- Ex1: Service of type tutorial.example2.service.DictionaryService registered.
- Ex1: Service of type tutorial.example2.service.DictionaryService unregistered.
The above two OSGi bundles are based on the first two tutorials at Apache Felix Website. I will try the rest of the tutorials later.