Hi, Am 12.11.2012 um 14:10 schrieb bokie:
> Hi, > > Yes I am using config-admin 1.6.0 > > When I start configadmin-1.6.0 before dependencymanager-3.0.0 no exception > is thrown. > > >>> Is there a reason for deploying this > > In new projects I usually go with the latest versions if there's no > compatibility issue with other modules/bundles. > >>> The Felix implementations of the OSGi specs usually include the >>> respective API and thus the >>> deployment of the osgi.cmpn bundle is not required and (as in your case) >>> may even cause trouble. > > The org.apache.felix.framework-4.0.3.jar file exports the osgi-core pkgs and > not the osgi-cmpn pkgs, or did you mean something else. Yes, I meant something else: The Felix Config Admin bundle exports the ConfigAdmin API; the Felix Declarative Services bundle exports the Declarative Services API, the Felix Log Service exports the Log Service API, the Felix Http Service bundle exports the Http Service API, etc. So there is almost never a requirement to actually deply the osgi.cmpn bundle. In fact, you may run in to problems if you don't carefully deploy the bundles: Either you deploy exact implementations of the APIs exported by the osgi.cmpn bundle or you have to pay attention to installation order. Regards Felix > > >>> In OSGi you should always FIRST install ALL of the >>> bundles you want to install, and THEN start them in any order. > > My set up does exactly that, it actually installs ALL bundles then starts > ALL bundles in the order in which they were started (this order of > istall-start works): > installed: org.apache.felix.framework.security > installed: my.platformsecurity > installed: osgi.cmpn > installed: org.apache.felix.configadmin > installed: org.apache.felix.dependencymanager > installed: org.apache.felix.fileinstall > started: my.platformsecurity > started: osgi.cmpn > started: org.apache.felix.configadmin > started: org.apache.felix.dependencymanager > started: org.apache.felix.fileinstall > > > Thanks, > Bokie > > > > > > -- > View this message in context: > http://apache-felix.18485.n6.nabble.com/DependencyManager-osgi-cmpn-4-3-1-tp5000342p5000364.html > Sent from the Apache Felix - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

