This is the only good way to do such things in OSGi. In reality, you can't really depend on a bundle being started, because being started is just a state which has no side effect. You depend on the fact that something is done when a bundle is started, and if you want to act on that thing being done, the only way is to model it as a service dependency.
On Wed, Jul 20, 2011 at 17:00, Achim Nierbeck <[email protected]> wrote: > Hi Dan, > > ok, I see. > Well I wouldn't go that far that it can't be done. It probably just > needs to be done differently :-) > One way to get such a "dependency" resolved is to export a service by > bundle B that bundle A > has to wait on. > I think some behavior like has already been discussed on this list. > > Regards, Achim > > 2011/7/20 Dan Tran <[email protected]>: >> Hi Achim, >> >> This is related to new proposed keystores system bundle and karaf's >> management bundle's. Both are using blueprint. >> >> From your comment, it means it cant be done? >> >> -D >> >> On Wed, Jul 20, 2011 at 7:42 AM, Achim Nierbeck <[email protected]> >> wrote: >>> Hi Dan, >>> >>> one way is to use the startlevel service. >>> If it uses blueprint or spring the startlevel service doesn't help you >>> though. >>> >>> Regards, Achim >>> >>> 2011/7/20 Dan Tran <[email protected]>: >>>> Hi >>>> >>>> This is related to https://issues.apache.org/jira/browse/KARAF-738 >>>> >>>> Could some Karaf's dev give me advice on how to proceed with this issue? >>>> >>>> -D >>>> >>> >>> >>> >>> -- >>> -- >>> *Achim Nierbeck* >>> >>> >>> Apache Karaf <http://karaf.apache.org/> Committer & PMC >>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> >>> Committer & Project Lead >>> blog <http://notizblog.nierbeck.de/> >>> >> > > > > -- > -- > *Achim Nierbeck* > > > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> > Committer & Project Lead > blog <http://notizblog.nierbeck.de/> > -- ------------------------ Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com
