You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Ch...@emc.com on 2012/05/15 18:59:33 UTC
can bundles depend on each other
I'm new to osgi, obviously perhaps.
I have two bundles that both depend on the other one; seems like a circular issue. Can they resolve like this? Right now, one of them complains that it can't resolve one of the packages that it its importing from the other one.
RE: can bundles depend on each other
Posted by Ch...@emc.com.
Indeed, you do not ;) Thanks!
Note that while circular dependencies can work, there are a host of reasons why they're a bad thing. But I hopefully don't have to spell these out.
.
Re: can bundles depend on each other
Posted by Neil Bartlett <nj...@gmail.com>.
Yes this is possible, as long as you install them both before trying to
resolve either (and remember, starting means implicitly resolving).
So if you do the following, it will work:
1) Install A
2) Install B
3) Start A and B
However if you do the following, it will not work:
1) Install A, start A
2) Install B, start B
Note that while circular dependencies can work, there are a host of
reasons why they're a bad thing. But I hopefully don't have to spell
these out.
Regards
Neil
> Chad.Davis@emc.com <ma...@emc.com>
> 15 May 2012 17:59
> I'm new to osgi, obviously perhaps.
>
> I have two bundles that both depend on the other one; seems like a
> circular issue. Can they resolve like this? Right now, one of them
> complains that it can't resolve one of the packages that it its
> importing from the other one.
>