You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2009/01/28 22:19:28 UTC

Re: OSGi integration (again)

Hi Daniel,

Daniel Fagerstrom schrieb:
> As some of you might have seen in the SVN logs, I have started to work 
> on making Cocoon work under OSGi again [1].

are you still working on this? I'd be interested in deploying Cocoon in 
an OSGi environment.

I just checked out the osgi directory from the whiteboard. After 
updating the version of the Cocoon artifact I'm running into several 
build issues.

The POM files under commons contain the following parent declaration:

     <parent>
         <groupId>org.apache.felix.commons</groupId>
         <artifactId>build</artifactId>
         <version>0.9.0-incubator-SNAPSHOT</version>
     </parent>

Is this still up to date? I couldn't find anything about a "build" 
artifact in the Felix commons sub-project.

TIA!

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


Re: OSGi integration (again)

Posted by Juan José Vázquez Delgado <ju...@gmail.com>.
Hi Grzegorz,

> Any pointers to "Sling scripts"? Quick look at Sling's home page didn't reveal anything.

You can deploy ecma, jsp, groovy and other scripting flavours into
Sling to process requests. Have a look this tutorial [1].

[1] http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html

BR,

Juanjo.

Re: OSGi integration (again)

Posted by Andreas Hartmann <an...@apache.org>.
Grzegorz Kossakowski schrieb:
> Juan José Vázquez Delgado pisze:
>> I´ve written a proof of concept with a Sling Servlet using the Cocoon
>> pipeline api to get the response. This proof was ok but I´m thinking
>> about a more natural Cocoon/Sling integration. IMHO, a pipeline, even
>> a sitemap, would be as a script in Sling.
> 
> Any pointers to "Sling scripts"? Quick look at Sling's home page didn't reveal anything.

Here's a bit of information:

http://incubator.apache.org/sling/site/servlet-resolution.html#ServletResolution-ScriptsareServlets
http://cwiki.apache.org/SLING/scripting-variables.html

Maybe this helps :)

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


Re: OSGi integration (again)

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Thu, Jan 29, 2009 at 12:57 PM, Grzegorz Kossakowski
<gr...@tuffmail.com> wrote:
> Juan José Vázquez Delgado pisze:
>> ...I´m thinking
>> about a more natural Cocoon/Sling integration. IMHO, a pipeline, even
>> a sitemap, would be as a script in Sling.
>
> Any pointers to "Sling scripts"? Quick look at Sling's home page didn't reveal anything.

http://incubator.apache.org/sling/site/discover-sling-in-15-minutes.html
shows the basics of how Sling processes a request by finding a script
in the JCR repository.

Totally agree with Juanjo that "cocoon scripts" could be used to
define Ccoon pipelines to process Sling requests.

-Bertrand

Re: OSGi integration (again)

Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Juan José Vázquez Delgado pisze:
> 
> I´ve written a proof of concept with a Sling Servlet using the Cocoon
> pipeline api to get the response. This proof was ok but I´m thinking
> about a more natural Cocoon/Sling integration. IMHO, a pipeline, even
> a sitemap, would be as a script in Sling.

Any pointers to "Sling scripts"? Quick look at Sling's home page didn't reveal anything.

-- 
Grzegorz Kossakowski

Re: OSGi integration (again)

Posted by Juan José Vázquez Delgado <ju...@gmail.com>.
> Wow, great - what do you think about committing this into the Sling
> whiteboard? So we can use this as a prototype and base for further
> discussions.

Sure, Carsten, My purpose is committing the proof of concept in
sandbox this weekend.

On the other hand, I´m embedding the cocoon-pipeline jar into the
bundle right now. IMHO, it would be ok having OSGizied cocoon jars to
deploy into Sling.

BR,

Juanjo.

Re: OSGi integration (again)

Posted by Andreas Hartmann <an...@apache.org>.
Carsten Ziegeler schrieb:
> Juan José Vázquez Delgado wrote:
>>>> I could imagine a future version of Lenya to use Sling for the
>>>> repository management. I wouldn't like to give up Cocoon's pipelining
>>>> and XML processing capabilities, though.
>>> Me neither :)
>>>
>>>> I'm not sure in which way Sling and Cocoon would cooperate from a
>>>> request processing point of view (I imagine that Sling resources can
>>>> include the output of Cocoon pipelines, which process data generated by
>>>> other resources), but I guess having the option to deploy Cocoon
>>>> blocks/modules as OSGi bundles would be a good starting point.
>>> For our products I've written a simple pipeline api (and impl) which
>>> post processes the output from Sling. My intention is to do exactly this
>>> with C3.
>> I´ve written a proof of concept with a Sling Servlet using the Cocoon
>> pipeline api to get the response. This proof was ok but I´m thinking
>> about a more natural Cocoon/Sling integration. IMHO, a pipeline, even
>> a sitemap, would be as a script in Sling.
>>
> Wow, great - what do you think about committing this into the Sling
> whiteboard? So we can use this as a prototype and base for further
> discussions.

I would also be very interested in seeing the code and joining the 
discussion.

-- Andreas



-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


Re: OSGi integration (again)

Posted by Carsten Ziegeler <cz...@apache.org>.
Juan José Vázquez Delgado wrote:
> Hi,
> 
>>> I could imagine a future version of Lenya to use Sling for the
>>> repository management. I wouldn't like to give up Cocoon's pipelining
>>> and XML processing capabilities, though.
>> Me neither :)
>>
>>> I'm not sure in which way Sling and Cocoon would cooperate from a
>>> request processing point of view (I imagine that Sling resources can
>>> include the output of Cocoon pipelines, which process data generated by
>>> other resources), but I guess having the option to deploy Cocoon
>>> blocks/modules as OSGi bundles would be a good starting point.
>> For our products I've written a simple pipeline api (and impl) which
>> post processes the output from Sling. My intention is to do exactly this
>> with C3.
> 
> I´ve written a proof of concept with a Sling Servlet using the Cocoon
> pipeline api to get the response. This proof was ok but I´m thinking
> about a more natural Cocoon/Sling integration. IMHO, a pipeline, even
> a sitemap, would be as a script in Sling.
> 
Wow, great - what do you think about committing this into the Sling
whiteboard? So we can use this as a prototype and base for further
discussions.

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org

Re: OSGi integration (again)

Posted by Juan José Vázquez Delgado <ju...@gmail.com>.
Hi,

>> I could imagine a future version of Lenya to use Sling for the
>> repository management. I wouldn't like to give up Cocoon's pipelining
>> and XML processing capabilities, though.
> Me neither :)
>
>> I'm not sure in which way Sling and Cocoon would cooperate from a
>> request processing point of view (I imagine that Sling resources can
>> include the output of Cocoon pipelines, which process data generated by
>> other resources), but I guess having the option to deploy Cocoon
>> blocks/modules as OSGi bundles would be a good starting point.
> For our products I've written a simple pipeline api (and impl) which
> post processes the output from Sling. My intention is to do exactly this
> with C3.

I´ve written a proof of concept with a Sling Servlet using the Cocoon
pipeline api to get the response. This proof was ok but I´m thinking
about a more natural Cocoon/Sling integration. IMHO, a pipeline, even
a sitemap, would be as a script in Sling.

BR,

Juanjo.

Re: OSGi integration (again)

Posted by Carsten Ziegeler <cz...@apache.org>.
Andreas Hartmann wrote:
> BTW, to illustrate my intentions:
> 
> I could imagine a future version of Lenya to use Sling for the
> repository management. I wouldn't like to give up Cocoon's pipelining
> and XML processing capabilities, though.
Me neither :)

> I'm not sure in which way Sling and Cocoon would cooperate from a
> request processing point of view (I imagine that Sling resources can
> include the output of Cocoon pipelines, which process data generated by
> other resources), but I guess having the option to deploy Cocoon
> blocks/modules as OSGi bundles would be a good starting point.
For our products I've written a simple pipeline api (and impl) which
post processes the output from Sling. My intention is to do exactly this
with C3.

Carsten
-- 
Carsten Ziegeler
cziegeler@apache.org

Re: OSGi integration (again)

Posted by Andreas Hartmann <an...@apache.org>.
Andreas Hartmann schrieb:
> Carsten Ziegeler schrieb:
>> Andreas Hartmann wrote:
>>> Hi Daniel,
>>>
>>> Daniel Fagerstrom schrieb:
>>>> As some of you might have seen in the SVN logs, I have started to work
>>>> on making Cocoon work under OSGi again [1].
> 
>>> are you still working on this? I'd be interested in deploying Cocoon in
>>> an OSGi environment.
> 
> […]
> 
>> I can't speak about C2, but my intension is to enable C3 for OSGi
>> (whatever that means in the end).
> 
> This is great news! I'll keep an eye on the commits, I hope I will find 
> the time to do some testing as soon as any code is available.

BTW, to illustrate my intentions:

I could imagine a future version of Lenya to use Sling for the 
repository management. I wouldn't like to give up Cocoon's pipelining 
and XML processing capabilities, though.

I'm not sure in which way Sling and Cocoon would cooperate from a 
request processing point of view (I imagine that Sling resources can 
include the output of Cocoon pipelines, which process data generated by 
other resources), but I guess having the option to deploy Cocoon 
blocks/modules as OSGi bundles would be a good starting point.

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


Re: OSGi integration (again)

Posted by Andreas Hartmann <an...@apache.org>.
Carsten Ziegeler schrieb:
> Andreas Hartmann wrote:
>> Hi Daniel,
>>
>> Daniel Fagerstrom schrieb:
>>> As some of you might have seen in the SVN logs, I have started to work
>>> on making Cocoon work under OSGi again [1].

>> are you still working on this? I'd be interested in deploying Cocoon in
>> an OSGi environment.

[…]

> I can't speak about C2, but my intension is to enable C3 for OSGi
> (whatever that means in the end).

This is great news! I'll keep an eye on the commits, I hope I will find 
the time to do some testing as soon as any code is available.

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


Re: OSGi integration (again)

Posted by Carsten Ziegeler <cz...@apache.org>.
Andreas Hartmann wrote:
> Hi Daniel,
> 
> Daniel Fagerstrom schrieb:
>> As some of you might have seen in the SVN logs, I have started to work
>> on making Cocoon work under OSGi again [1].
> 
> are you still working on this? I'd be interested in deploying Cocoon in
> an OSGi environment.
> 
> I just checked out the osgi directory from the whiteboard. After
> updating the version of the Cocoon artifact I'm running into several
> build issues.
> 
> The POM files under commons contain the following parent declaration:
> 
>     <parent>
>         <groupId>org.apache.felix.commons</groupId>
>         <artifactId>build</artifactId>
>         <version>0.9.0-incubator-SNAPSHOT</version>
>     </parent>
> 
> Is this still up to date? I couldn't find anything about a "build"
> artifact in the Felix commons sub-project.
> 
This is definitly not up to date :(

I can't speak about C2, but my intension is to enable C3 for OSGi
(whatever that means in the end).

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org