Thanks to both of you, I will try to do it using the OBR. However, do you know what was the rational for not having an ImportedPackage interface, along with something like getImportedPackages(Bundle) in the PackageAdmin service ? It seems like something one would want to do, and would probably simplify quite a bit the implementation of the OBR service bundles. But I suspect that the PackageAdmin service wasn't really designed for that kind of use.
Kind regards, Olivier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Kriens Sent: 05 July 2007 08:06 To: Felix Meschberger Cc: OSGi Developer Mail List Subject: Re[2]: [osgi-dev] Retrieving a bundle's dependencies Right, OBR seems the way to go. However, if not you can find useful source code in http://www2.osgi.org/svn/public/trunk/org.osgi.impl.bundle.bindex http://www.aQute.biz/repo/biz/aQute/bndlib Kind regards, Peter Kriens FM> Hi Olivier, FM> Have you looked into using the OSGi Bundle Repository for this ? The FM> RFC spec is here [1] and Apache Felix has a nice implementation of FM> it at [2]. You might also want to look at Peter's blog entry at [3]. FM> After having set up such a repository, the bundlerepository bundle FM> takes away all your pains of resolving dependencies and FM> automatically include them for deployment. FM> Hope this helps. FM> Regards FM> Felix FM> [1] http://www2.osgi.org/download/rfc-0112_BundleRepository.pdf FM> [2] http://svn.apache.org/repos/asf/felix/trunk/bundlerepository FM> [3] http://www.osgi.org/blog/2006/04/bundle-repository.html _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
