Re: OSGI pluggability in Sling

2009-03-22 Thread Felix Meschberger
Hi Glenn,

Glenn Silverman schrieb:
> As a Sling novice, I would like to know if the OSGI implementation in
> Sling is really pluggable, as the documentation suggests?

In fact, all of Sling is just OSGi Bundles and should be easily
pluggable into just about any OSGi framework, including Equinox and
Knopflerfish.

> If so, is there a how-to document, or an example, of using Equinox in
> place of Felix.

There is a how-to run the Jackrabbit stuff inside Equinox at [1]. And
there is a page on running Sling on the ServiceMix Kernel at [2].

There is a slight drawback: You have to setup and install "manually".

> How about running Sling and Jackrabbit, without Felix, in Spring DM?

Should actually be very possible, though I do not know, whether this has
already been tried. Any feedback would of course be welcome.

Regards
Felix

[1]
http://cwiki.apache.org/SLING/launching-a-jcr-repository-inside-equinox.html
[2]
http://servicemix.apache.org/SMX4KNL/running-apache-sling-on-servicemix-kernel.html

> 
> Glenn Silverman...
> 
> 
> 


Re: OSGI pluggability in Sling

2009-03-22 Thread Juan José Vázquez Delgado
> There is a how-to run the Jackrabbit stuff inside Equinox at [1]. And
> there is a page on running Sling on the ServiceMix Kernel at [2].

I have made some tests runnig Sling on the ServiceMix Kernel and
everything was ok. An OSGi R4 Http Service implementation is mandatory
in order to work, for instance Pax Web [1].

Regarding with this, maybe we should provide a systematic way to test
Sling on other OSGi containers than Apache Felix. Using Pax Exam [2]
with the Sling integration tests could be a choice.

WDYT?

[1] http://wiki.ops4j.org/display/ops4j/Pax+Web
[2] http://wiki.ops4j.org/display/ops4j/Pax+Exam


Re: OSGI pluggability in Sling

2009-03-22 Thread Felix Meschberger


Juan José Vázquez Delgado schrieb:
>> There is a how-to run the Jackrabbit stuff inside Equinox at [1]. And
>> there is a page on running Sling on the ServiceMix Kernel at [2].
> 
> I have made some tests runnig Sling on the ServiceMix Kernel and
> everything was ok. An OSGi R4 Http Service implementation is mandatory
> in order to work, for instance Pax Web [1].
> 
> Regarding with this, maybe we should provide a systematic way to test
> Sling on other OSGi containers than Apache Felix. Using Pax Exam [2]
> with the Sling integration tests could be a choice.
> 
> WDYT?

Good idea.

I was thinking along the lines of creating a "dummy bundle", which
contains references to "core" Sling bundles. Then we could instruct to
point the OSGi Bundle Repository Client to the Sling Bundle Repository
and install the "dummy bundle" to have Sling easily installed.

Regards
Felix

> 
> [1] http://wiki.ops4j.org/display/ops4j/Pax+Web
> [2] http://wiki.ops4j.org/display/ops4j/Pax+Exam
> 



Re: OSGI pluggability in Sling

2009-03-23 Thread Carsten Ziegeler
Felix Meschberger wrote:
> I was thinking along the lines of creating a "dummy bundle", which
> contains references to "core" Sling bundles. Then we could instruct to
> point the OSGi Bundle Repository Client to the Sling Bundle Repository
> and install the "dummy bundle" to have Sling easily installed.
> 
What about creating a deployment package?

Carsten

-- 
Carsten Ziegeler
cziege...@apache.org


Re: OSGI pluggability in Sling

2009-03-23 Thread Felix Meschberger
Hi,

Carsten Ziegeler schrieb:
> Felix Meschberger wrote:
>> I was thinking along the lines of creating a "dummy bundle", which
>> contains references to "core" Sling bundles. Then we could instruct to
>> point the OSGi Bundle Repository Client to the Sling Bundle Repository
>> and install the "dummy bundle" to have Sling easily installed.
>>
> What about creating a deployment package?

I knew you would mention that ;-)

Sure, this would also be a good idea, of course -- In fact it is a far
better idea than the "dummy bundle" -- and I constantly forget about it.

Regards
Felix



Re: OSGI pluggability in Sling

2009-03-23 Thread Carsten Ziegeler
Felix Meschberger wrote:
>> What about creating a deployment package?
> 
> I knew you would mention that ;-)
> 
> Sure, this would also be a good idea, of course -- In fact it is a far
> better idea than the "dummy bundle" -- and I constantly forget about it.
> 
:)

There is already a maven plugin in my Apache Felix sandbox, so maybe we
could start using that one and fix bugs and improve it as we need it.

Carsten
-- 
Carsten Ziegeler
cziege...@apache.org


Re: OSGI pluggability in Sling

2009-03-24 Thread Sebastian Gomez
Hi.
I'm not sure if this is the best place to write to, but I've been able to
use Sling in ServiceMix Kernel without much problems, and have created a
patch to deploy it as a ServiceMix Kernel feature. I've attached the patch
to the following JIRA issue: https://issues.apache.org/jira/browse/SLING-896

I assume it would be quite useful for users to be able to use this patch,
because it allows the deployment of Sling in ServiceMix Kernel by executing
just two lines, so I'd appreciate you commiters including it maybe in the
contrib section of the project.

Sebastian Gomez.


On Mon, Mar 23, 2009 at 2:10 PM, Carsten Ziegeler wrote:

> Felix Meschberger wrote:
> >> What about creating a deployment package?
> >
> > I knew you would mention that ;-)
> >
> > Sure, this would also be a good idea, of course -- In fact it is a far
> > better idea than the "dummy bundle" -- and I constantly forget about it.
> >
> :)
>
> There is already a maven plugin in my Apache Felix sandbox, so maybe we
> could start using that one and fix bugs and improve it as we need it.
>
> Carsten
> --
> Carsten Ziegeler
> cziege...@apache.org
>


Re: OSGI pluggability in Sling

2009-03-24 Thread Juan José Vázquez Delgado
Hi Sebastián,

> I'm not sure if this is the best place to write to

No better place occurred to me :-).

> but I've been able to
> use Sling in ServiceMix Kernel without much problems, and have created a
> patch to deploy it as a ServiceMix Kernel feature. I've attached the patch
> to the following JIRA issue: https://issues.apache.org/jira/browse/SLING-896

This approach makes the things easier with Servicemix Kernel. Thanks a lot!

> I assume it would be quite useful for users to be able to use this patch,
> because it allows the deployment of Sling in ServiceMix Kernel by executing
> just two lines, so I'd appreciate you commiters including it maybe in the
> contrib section of the project.

Maybe as a new launchpad module under  contrib. WDYT?

BR,

Juanjo.


Re: OSGI pluggability in Sling

2009-03-24 Thread Felix Meschberger


Juan José Vázquez Delgado schrieb:
> Hi Sebastián,
> 
>> I'm not sure if this is the best place to write to
> 
> No better place occurred to me :-).
> 
>> but I've been able to
>> use Sling in ServiceMix Kernel without much problems, and have created a
>> patch to deploy it as a ServiceMix Kernel feature. I've attached the patch
>> to the following JIRA issue: https://issues.apache.org/jira/browse/SLING-896
> 
> This approach makes the things easier with Servicemix Kernel. Thanks a lot!
> 
>> I assume it would be quite useful for users to be able to use this patch,
>> because it allows the deployment of Sling in ServiceMix Kernel by executing
>> just two lines, so I'd appreciate you commiters including it maybe in the
>> contrib section of the project.
> 
> Maybe as a new launchpad module under  contrib. WDYT?

Makes sense. In fact, that's what I was thinking of, too.

Regards
Felix