You are assuming that the Http Service is registered before you start and never goes away. The dynamics are an intrinsic part of OSGi, ignoring them will fail you. For example if the HTTP service bundle gets updated you are s.....d.
The best way to handle the dynamics is to use a helper like Declarative Services, Spring, iPOJO, SAT, etc.
1 comment:
You are assuming that the Http Service is registered before you start and never goes away. The dynamics are an intrinsic part of OSGi, ignoring them will fail you. For example if the HTTP service bundle gets updated you are s.....d.
The best way to handle the dynamics is to use a helper like Declarative Services, Spring, iPOJO, SAT, etc.
You can find an example with Declarative Services at the aQute snippets site.
Peter Kriens
Post a Comment