Hi Dev,

> 1)      My services bundle get deployed with status Active yet "services"
> command from OSGi prompt,  doesn't show me my service. My bundle was tested
> within Eclipse Equinox and it worked correctly and also displayed my
> services.

This is quite normal behaviour. Depending on your service declaration,
the Declarative Services Runtime (SCR) might not start your service due
to some services references which cannot be satisfied.

> Since I am using the preference services I have to use the
> "org.osgi.compendium-0.9.0-incubator-SNAPSHOT" bundle and in order to use
> declarative services I am using the
> "org.apache.felix.scr-0.9.0-incubator-SNAPSHOT   " bundle.  I assume that
> since the same packages are being exported by two bundles it's a potential
> problem. 

This is one of the great things about OSGi :-) Multiple bundles may
provide the same packages (to not create needless dependencies) and the
framework will then decide which packages to actually use. In your case
the framework might decide to create wires for the
org.osgi.service.component package to the osg.osgi.componendium bundle
and not to use the same package from the scr o.a.felix.bundle at all. 

In short, it is the task of the OSGi framework to resolve these
collissions and frameworks are very good at that :-)

> Can someone help me out with the issue as to why I am unable to run the
> declarative service bundle inside Felix?

As I said earlier, this might be due to an unsatisfied service
requirement of your declared component.

Hope this helps.

Regards
Felix

Reply via email to