You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Jukka Zitting <ju...@gmail.com> on 2012/02/23 17:33:57 UTC

[jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Hi,

On Thu, Feb 23, 2012 at 4:03 PM, Felix Meschberger <fm...@adobe.com> wrote:
> Hence I would go with OSGi from Day 0 and use the OSGi Service
> Registry as the mechanic for pluggability.

The trouble with OSGi by default is that it brings in a massive and
pretty complex dependency with it. If you build your code with the
OSGi service registry in mind, it becomes difficult to run it in any
other environment, including in a simple JUnit test case. You're
basically making an assumption that all your deployment environments
will be OSGi frameworks, which dramatically reduces your potential
user-base.

I don't want us to make that assumption. It should IMHO be possible to
embed the repository implementation to for example an Android app, to
a Maven plugin or a J2EE CMS without having to OSGify the entire
application.

That doesn't mean we couldn't or shouldn't use OSGi for wiring things
up when the repository *is* deployed to an OSGi environment. Indeed
that's why I explicitly included those points in the roadmap. It's
just that we shouldn't make the core architecture depend on constructs
like ServiceTracker that don't work outside the scope of OSGi.

BR,

Jukka Zitting

AW: [jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Posted by KÖLL Claus <C....@TIROL.GV.AT>.
i am absolutly with jukka here

+1 to all !

greets
claus

On Thu, Feb 23, 2012 at 5:33 PM, Jukka Zitting <ju...@gmail.com> wrote:
> Hi,
>
> On Thu, Feb 23, 2012 at 4:03 PM, Felix Meschberger <fm...@adobe.com> wrote:
>> Hence I would go with OSGi from Day 0 and use the OSGi Service
>> Registry as the mechanic for pluggability.
>
> The trouble with OSGi by default is that it brings in a massive and
> pretty complex dependency with it. If you build your code with the
> OSGi service registry in mind, it becomes difficult to run it in any
> other environment, including in a simple JUnit test case. You're
> basically making an assumption that all your deployment environments
> will be OSGi frameworks, which dramatically reduces your potential
> user-base.
>
> I don't want us to make that assumption. It should IMHO be possible to
> embed the repository implementation to for example an Android app, to
> a Maven plugin or a J2EE CMS without having to OSGify the entire
> application.
>
> That doesn't mean we couldn't or shouldn't use OSGi for wiring things
> up when the repository *is* deployed to an OSGi environment. Indeed
> that's why I explicitly included those points in the roadmap. It's
> just that we shouldn't make the core architecture depend on constructs
> like ServiceTracker that don't work outside the scope of OSGi.
> BR,
>
> Jukka Zitting

Re: [jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Posted by Stefan Guggisberg <st...@gmail.com>.
On Thu, Feb 23, 2012 at 5:33 PM, Jukka Zitting <ju...@gmail.com> wrote:
> Hi,
>
> On Thu, Feb 23, 2012 at 4:03 PM, Felix Meschberger <fm...@adobe.com> wrote:
>> Hence I would go with OSGi from Day 0 and use the OSGi Service
>> Registry as the mechanic for pluggability.
>
> The trouble with OSGi by default is that it brings in a massive and
> pretty complex dependency with it. If you build your code with the
> OSGi service registry in mind, it becomes difficult to run it in any
> other environment, including in a simple JUnit test case. You're
> basically making an assumption that all your deployment environments
> will be OSGi frameworks, which dramatically reduces your potential
> user-base.
>
> I don't want us to make that assumption. It should IMHO be possible to
> embed the repository implementation to for example an Android app, to
> a Maven plugin or a J2EE CMS without having to OSGify the entire
> application.
>
> That doesn't mean we couldn't or shouldn't use OSGi for wiring things
> up when the repository *is* deployed to an OSGi environment. Indeed
> that's why I explicitly included those points in the roadmap. It's
> just that we shouldn't make the core architecture depend on constructs
> like ServiceTracker that don't work outside the scope of OSGi.

+1, i absolutely agree with jukka's reasoning.

cheers
stefan

>
> BR,
>
> Jukka Zitting

Re: [jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Posted by Dominique Pfister <dp...@adobe.com>.
+1, perfectly expresses my opinion towards OSGI!

On Feb 23, 2012, at 5:33 PM, Jukka Zitting wrote:

> Hi,
> 
> On Thu, Feb 23, 2012 at 4:03 PM, Felix Meschberger <fm...@adobe.com> wrote:
>> Hence I would go with OSGi from Day 0 and use the OSGi Service
>> Registry as the mechanic for pluggability.
> 
> The trouble with OSGi by default is that it brings in a massive and
> pretty complex dependency with it. If you build your code with the
> OSGi service registry in mind, it becomes difficult to run it in any
> other environment, including in a simple JUnit test case. You're
> basically making an assumption that all your deployment environments
> will be OSGi frameworks, which dramatically reduces your potential
> user-base.
> 
> I don't want us to make that assumption. It should IMHO be possible to
> embed the repository implementation to for example an Android app, to
> a Maven plugin or a J2EE CMS without having to OSGify the entire
> application.
> 
> That doesn't mean we couldn't or shouldn't use OSGi for wiring things
> up when the repository *is* deployed to an OSGi environment. Indeed
> that's why I explicitly included those points in the roadmap. It's
> just that we shouldn't make the core architecture depend on constructs
> like ServiceTracker that don't work outside the scope of OSGi.
> 
> BR,
> 
> Jukka Zitting


Re: [jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Fri, Feb 24, 2012 at 10:05 AM, Felix Meschberger <fm...@adobe.com> wrote:
> Here's my list of requirements :

Sounds much better, thanks! Completely agreed.

BR,

Jukka Zitting

Re: [jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Posted by Felix Meschberger <fm...@adobe.com>.
Hi,

Am 23.02.2012 um 17:33 schrieb Jukka Zitting:

> Hi,
> 
> On Thu, Feb 23, 2012 at 4:03 PM, Felix Meschberger <fm...@adobe.com> wrote:
>> Hence I would go with OSGi from Day 0 and use the OSGi Service
>> Registry as the mechanic for pluggability.
> 
> The trouble with OSGi by default is that it brings in a massive and
> pretty complex dependency with it. If you build your code with the
> OSGi service registry in mind, it becomes difficult to run it in any
> other environment, including in a simple JUnit test case. You're
> basically making an assumption that all your deployment environments
> will be OSGi frameworks, which dramatically reduces your potential
> user-base.
> 
> I don't want us to make that assumption. It should IMHO be possible to
> embed the repository implementation to for example an Android app, to
> a Maven plugin or a J2EE CMS without having to OSGify the entire
> application.
> 
> That doesn't mean we couldn't or shouldn't use OSGi for wiring things
> up when the repository *is* deployed to an OSGi environment. Indeed
> that's why I explicitly included those points in the roadmap. It's
> just that we shouldn't make the core architecture depend on constructs
> like ServiceTracker that don't work outside the scope of OSGi.

Hmm, ok, let me rephrase it a bit (still I have OSGi in mind and my absolute requirement is that JR 3 must be deployable in an OSGi framework more easily than JR2).

Here's my list of requirements :

  * Dependency Injection -- known to be a good thing for testing
      and supported not only by Spring but also by OSGi (Declarative
      Services and Blueprint and other non-standard ones).
  * Clear picture of configuration -- again injected à-la DI.
  * Proper separation of public API/packages and private
      implementation packages.
  * No static factories. These are a pain in standard Java but are
      dreadful in pluggable frameworks.
  * Create bundles from the start. These don't harm but allow us
      to testdrive in OSGi frameworks right away.

Regards
Felix

Re: [jr3] On pluggability and OSGi (Was: [jr3] Release roadmap)

Posted by Thomas Mueller <mu...@adobe.com>.
>
>The trouble with OSGi by default is that it brings in a massive and
>pretty complex dependency with it. If you build your code with the
>OSGi service registry in mind, it becomes difficult to run it in any
>other environment, including in a simple JUnit test case. You're
>basically making an assumption that all your deployment environments
>will be OSGi frameworks, which dramatically reduces your potential
>user-base.
>
>I don't want us to make that assumption. It should IMHO be possible to
>embed the repository implementation to for example an Android app, to
>a Maven plugin or a J2EE CMS without having to OSGify the entire
>application.
>
>That doesn't mean we couldn't or shouldn't use OSGi for wiring things
>up when the repository *is* deployed to an OSGi environment. Indeed
>that's why I explicitly included those points in the roadmap. It's
>just that we shouldn't make the core architecture depend on constructs
>like ServiceTracker that don't work outside the scope of OSGi.

+1 to all of that.