Deciding how much code to use in JSP vs OSGI Bundle
I was wondering which if it is preferable to have as much Java code inside a component to be held inside of OSGI bundles created in eclipse using maven.
A co worker argues to me that there is no need to use osgi bundles, and that we can do it all inside of JSP.
I am of the contrary opinion. It is also my proposition that the AEM documentation recommends OSGI bundles and using as little java code inside the jsp as possible. My colleague says that the documentation does not support or recommend this.
Now I do not care if I am wrong or right on a personal basis, I just want to make an informed decision.The project has now grown to a complexity where we need to make a strategic decision on this issue.
So, which hypothesis is correct, or is there a better middle ground between the two?
Best Regards
Clive Stewart