On 25.09.2014, at 08:48, Reetu <[email protected]> wrote:

> I am trying to map the sling.servlet.resourceTypes, so that the URL
> requests can be handled by Spring MVC that is running inside Sling
> container.

Why do you want to do that? I strongly assume this will create just more 
problems in the long term, if you have 2 very different frameworks fight over 
control.

It might make sense if you need to integrate some existing code, but then I 
would try to embed the existing spring webapp via a bundle and keep the URLs 
between spring and sling separate. See also [1].

But for new stuff, use either sling or spring (and I'd argue for Sling :-)), 
but not both together.

[1] http://dev.day.com/content/ddc/blog/2008/05/slingspringspling.html

Cheers,
Alex

Reply via email to