On 6 Sep 2008, at 08:55, tung vu duc wrote:
Hi cool Day Software developers,
Am answering as a mere user, not related to Day..
how to use sling whithout OSGi (without Felix).
This will be hard. I'd figure it would be easier to leave felix in, it's not too large.
I think, the most developers, who would like to use sling, will integrate it into their own web app but do't use sling alone, whithout a server-side web framwork. For a normal web app is sling with Felix too heavy and complex.
It's certainly possible to integrate into an existing webapp. You can extract the guts of the war file and embed into yours. The issue I think it to get a resource provider set up that can serve resources from the webapp, in addition to the sling repository, this would allow JSP files to reside in their usual places in your legacy applications WAR file.
A file system resource provider has already been implemented and is in the samples directory of the sling source. I believe this can be modified to use the servlet context getResource() method instead of using the filesystem directly. Search the mailing list for SLING-583 to see some discussion on this topic and how to set up.
Secondly, sling can be set up to use an existing repository, there was some hints provided on the mailing list, but I don't remember the subject lines. Searching the mailing list should give some pointers.
-- Torgeir Veimo [EMAIL PROTECTED]
