Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

Should I use Spring MVC in AEM Sling

Hi,

I am writing from scratch. I have two options:

1) Write my integration module which calls backend service using Spring MVC.

2) Write using Sling only and call service. 

Points need to take care while choosing one:

- If I have multiple form submit then I will end up with multiple servlet if it is sling instead of if it is Spring it will be taken care by Spring Dispacher.

- Spring has it's own Validation and binding feature. 

 

Wanted to check if I can still get features like Spring using Sling itself or Spring is advisable?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

AEM does not come with Spring framework files.I would advice against it as it may lead to conflicts. Try and use Sling as much as possible. 

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

AEM does not come with Spring framework files.I would advice against it as it may lead to conflicts. Try and use Sling as much as possible. 

Translate
Peter_Puzanovs
Community Advisor
Community Advisor
Oct 16, 2015 2:28 AM UTC

The best of Sling, powered by Spring == http://neba.io

Or to be even more precise: http://neba.io/userguide.html#springmvc

Thanks,

Peter

Translate