On Wed, Dec 9, 2009 at 8:57 PM, Guo Zhenhua <[email protected]> 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?

If it's java code you'll have to use (a bit of) OSGi to access the
Sling interfaces.

If it's scripting, you can get at Sling services quite easily.

The samples/espblog sample has examples of both java and scripted
(esp) code, if you look at the pom.xml and the single java class you
can see the the OSGi part is fairly simple.

-Bertrand

Reply via email to