You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Torgeir Veimo <to...@pobox.com> on 2008/06/27 01:07:39 UTC
sling without maven
Is there a writeup on what's required to integrate sling into another
webapp in a non maven world?
My assumption would be to first get a osgi container integrated, then
sling and the jar files it depends on. But a step by step guide would
be handy..
--
Torgeir Veimo
torgeir@pobox.com
Re: sling without maven
Posted by Torgeir Veimo <to...@pobox.com>.
On 27 Jun 2008, at 16:58, Felix Meschberger wrote:
> Right, the first step is to have your webapp start an OSGi framework
> instance.
I had a look at the examples here; http://felix.apache.org/site/launching-and-embedding-apache-felix.html
The Custom Felix Loader example seems to have an error; It defined the
configMap twice and references a configProps which is not defined. I
assume the first definition should be of a Map configProps?
> If you look at the Sling launchpad/webapp you see, that the required
> bundles are just added to the WEB-INF/resources/bundles folder and
> picked up from there by the Sling main class which launches the
> Felix framework. You may choose to use this integration, just adapt
> the SlingServlet to your needs or rip out what you need.
I think that would be the easiest approach.
--
Torgeir Veimo
torgeir@pobox.com
Re: sling without maven
Posted by Felix Meschberger <fm...@gmail.com>.
Hi Torgeir,
Torgeir Veimo schrieb:
> Is there a writeup on what's required to integrate sling into another
> webapp in a non maven world?
>
> My assumption would be to first get a osgi container integrated, then
> sling and the jar files it depends on. But a step by step guide would be
> handy..
Right, the first step is to have your webapp start an OSGi framework
instance.
Next you have to deploy the required bundles in this framework. How you
do this depends on how you integrate the OSGi container. If you look at
the Sling launchpad/webapp you see, that the required bundles are just
added to the WEB-INF/resources/bundles folder and picked up from there
by the Sling main class which launches the Felix framework. You may
choose to use this integration, just adapt the SlingServlet to your
needs or rip out what you need.
Next add the bundles you need. Again, the existing Sling
launchpad/webapp may help you here: Just use the same jar files as
contained in that web app and you should be done.
Hope this helps as a first pointer ...
Regards
Felix