You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Srikanth Hugar <sr...@gmail.com> on 2014/12/04 12:21:03 UTC
felix or equinox ?
I am confused which OSGi framework to use.
felix or equinox ?
Which framework is more stable? Which has more troubleshooting and support?
When to use which one?
Re: felix or equinox ?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
For dev, I would agree with Christian.
However, for production, equinox is maybe a bit more stable (for
instance, we have a tricky issue on Felix with bundle cache corruption
that we don't see with Equinox).
Anyway, the two frameworks are very close in term of performance, memory
consumption.
On the other hand, KF is also available but:
1/ it's not supported out the box by Karaf
2/ the features scope is different from Felix and Equinox
Regards
JB
On 12/04/2014 12:28 PM, Christian Schneider wrote:
> I would start with felix. The main reason for me is that the resolver is
> better. So for example if you have a package use conflict then felix
> will give you some good diagnostics while the message in equinox is not
> really helpful.
>
> Christian
>
> On 04.12.2014 12:21, Srikanth Hugar wrote:
>> I am confused which OSGi framework to use.
>>
>> felix or equinox ?
>>
>> Which framework is more stable? Which has more troubleshooting and
>> support?
>>
>> When to use which one?
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: felix or equinox ?
Posted by Srikanth Hugar <sr...@gmail.com>.
Thank you all for detailed explanation. Details will really help me to take
a decision.
Srikanth Hugar
www.gharki.com
On Fri, Dec 5, 2014 at 1:37 PM, Achim Nierbeck <bc...@googlemail.com>
wrote:
> I second Christan on thsi, DependencyManager will help you as does
> Pax-Swissbox for ServiceTracking.
> And it'll work on any OSGi framework, that's the sweetness of OSGi as long
> as you depend on services you can use whatever framework you want, so the
> Felix DependencyManager should also work on Knopflerfish. If not I would
> raise a Issue for that instantly :D
>
> regards, Achim
>
>
> 2014-12-05 9:03 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:
>
>> While I agree that it is better to use a standard like declarative
>> services I do not think you lock yourself in using DependencyManager.
>> As far as I know DependencyManager comes in separate bundles and should
>> also work on equinox.
>>
>> Christian
>>
>>
>> On 04.12.2014 23:59, chris.gray@kiffer.ltd.uk wrote:
>>
>>> Knopflerfish ;-)
>>>
>>> Seriously, if I just need an OSGi framework then I tend to use KF
>>> because
>>> I have used it for so long in the embedded space. Of the two you mention
>>> I
>>> would go for Felix because the primary focus is still OSGi, while Equinox
>>> is both an OSGi framework and a component of the Eclipse runtime.
>>>
>>> In both cases you need to be aware that they offer features beyond what
>>> is
>>> specified by OSGi, so if you do not pay attention you may end up locking
>>> yourself into that particular framework. Felix for example has this very
>>> nice Dependency Manager, but if you use this directly (as opposed to via
>>> DS for example) you will end up with bundles which only run on Felix.
>>> Worse still, if you develop with Eclipse PDE and Equinox you can easily
>>> end up developing stuff which is not just 1) non-portable to another OSGi
>>> framework but also 2) not really OSGi at all; I am thinking of split
>>> packages, Require-Bundle, ...
>>>
>>> So whatever you choose, be careful how you use it.
>>>
>>> Chris
>>>
>>>
>>>
>>>
>>
>> --
>> Christian Schneider
>> http://www.liquid-reality.de
>>
>> Open Source Architect
>> http://www.talend.com
>>
>>
>
>
> --
>
> Apache Member
> 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/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>
Re: felix or equinox ?
Posted by Achim Nierbeck <bc...@googlemail.com>.
I second Christan on thsi, DependencyManager will help you as does
Pax-Swissbox for ServiceTracking.
And it'll work on any OSGi framework, that's the sweetness of OSGi as long
as you depend on services you can use whatever framework you want, so the
Felix DependencyManager should also work on Knopflerfish. If not I would
raise a Issue for that instantly :D
regards, Achim
2014-12-05 9:03 GMT+01:00 Christian Schneider <ch...@die-schneider.net>:
> While I agree that it is better to use a standard like declarative
> services I do not think you lock yourself in using DependencyManager.
> As far as I know DependencyManager comes in separate bundles and should
> also work on equinox.
>
> Christian
>
>
> On 04.12.2014 23:59, chris.gray@kiffer.ltd.uk wrote:
>
>> Knopflerfish ;-)
>>
>> Seriously, if I just need an OSGi framework then I tend to use KF because
>> I have used it for so long in the embedded space. Of the two you mention I
>> would go for Felix because the primary focus is still OSGi, while Equinox
>> is both an OSGi framework and a component of the Eclipse runtime.
>>
>> In both cases you need to be aware that they offer features beyond what is
>> specified by OSGi, so if you do not pay attention you may end up locking
>> yourself into that particular framework. Felix for example has this very
>> nice Dependency Manager, but if you use this directly (as opposed to via
>> DS for example) you will end up with bundles which only run on Felix.
>> Worse still, if you develop with Eclipse PDE and Equinox you can easily
>> end up developing stuff which is not just 1) non-portable to another OSGi
>> framework but also 2) not really OSGi at all; I am thinking of split
>> packages, Require-Bundle, ...
>>
>> So whatever you choose, be careful how you use it.
>>
>> Chris
>>
>>
>>
>>
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>
--
Apache Member
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/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
Re: felix or equinox ?
Posted by Christian Schneider <ch...@die-schneider.net>.
While I agree that it is better to use a standard like declarative
services I do not think you lock yourself in using DependencyManager.
As far as I know DependencyManager comes in separate bundles and should
also work on equinox.
Christian
On 04.12.2014 23:59, chris.gray@kiffer.ltd.uk wrote:
> Knopflerfish ;-)
>
> Seriously, if I just need an OSGi framework then I tend to use KF because
> I have used it for so long in the embedded space. Of the two you mention I
> would go for Felix because the primary focus is still OSGi, while Equinox
> is both an OSGi framework and a component of the Eclipse runtime.
>
> In both cases you need to be aware that they offer features beyond what is
> specified by OSGi, so if you do not pay attention you may end up locking
> yourself into that particular framework. Felix for example has this very
> nice Dependency Manager, but if you use this directly (as opposed to via
> DS for example) you will end up with bundles which only run on Felix.
> Worse still, if you develop with Eclipse PDE and Equinox you can easily
> end up developing stuff which is not just 1) non-portable to another OSGi
> framework but also 2) not really OSGi at all; I am thinking of split
> packages, Require-Bundle, ...
>
> So whatever you choose, be careful how you use it.
>
> Chris
>
>
>
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com
Re: felix or equinox ?
Posted by ch...@kiffer.ltd.uk.
Knopflerfish ;-)
Seriously, if I just need an OSGi framework then I tend to use KF because
I have used it for so long in the embedded space. Of the two you mention I
would go for Felix because the primary focus is still OSGi, while Equinox
is both an OSGi framework and a component of the Eclipse runtime.
In both cases you need to be aware that they offer features beyond what is
specified by OSGi, so if you do not pay attention you may end up locking
yourself into that particular framework. Felix for example has this very
nice Dependency Manager, but if you use this directly (as opposed to via
DS for example) you will end up with bundles which only run on Felix.
Worse still, if you develop with Eclipse PDE and Equinox you can easily
end up developing stuff which is not just 1) non-portable to another OSGi
framework but also 2) not really OSGi at all; I am thinking of split
packages, Require-Bundle, ...
So whatever you choose, be careful how you use it.
Chris
Re: felix or equinox ?
Posted by Christian Schneider <ch...@die-schneider.net>.
I would start with felix. The main reason for me is that the resolver is
better. So for example if you have a package use conflict then felix
will give you some good diagnostics while the message in equinox is not
really helpful.
Christian
On 04.12.2014 12:21, Srikanth Hugar wrote:
> I am confused which OSGi framework to use.
>
> felix or equinox ?
>
> Which framework is more stable? Which has more troubleshooting and
> support?
>
> When to use which one?
--
Christian Schneider
http://www.liquid-reality.de
Open Source Architect
http://www.talend.com