Guo Zhenhua wrote:
> Continuing my question. If I want to run my code in the same webapp
> with Sling, my code needs to written according to OSGi or regular code
> works fine?
> 
It depends on what exactly you want to do :)
If Sling runs in a webapp the main entry point is a servlet which embeds
the OSGi container and Sling runs inside this container. The servlet is
just a proxy forwarding all requests to Sling.
But as this is a regular webapp you can run other servlets at the same
time and these servlets don't have to use OSGi. In addition you can
forward or include from these servlets to Sling.

Carsten
-- 
Carsten Ziegeler
[email protected]

Reply via email to