CQ5 Spring Integration

Can I use the CQ5 integration framework with the Spring framework? I would like to leverage the power of Spring IoC to make my code clearer and more efficient.

UPDATE

Hi yeah, seems to have found a solution. The guys here have developed a slice slice that really updates the code and makes CQ5 development easier.

+3


source to share


2 answers


You probably want to check out the Eclipse Gemini Blueprint or the original Spring incarnation Dynamic Modules . The Blueprint project basically gives you an easy way to create Spring included packages in an OSGi environment.



As shsteimer mentions, Spring distributions prior to 3.2.0 were OSGi packages , so they could be dumped into an OSGi environment and you could probably use them directly. Spring Packages 3.2.0 and higher are now available through SpringSource ERB . However, Blueprint bypasses or helps with some OSGi components you would otherwise have to do.

+3


source


In a past project, I was able to get Spring JDBC working inside CQ (to support some legacy code, so we didn't have to rewrite it). My memory is that the Spring jars already appeared "OSGI-ified" and so it was just figuring out all the dependency layers JDBC needed to work inside CQ and adding all the jars to the repository at / apps / myApp / install.



Long story short, I'm not sure about IoC, but you can check to see if it is packaged as an OSGI version that you can just use without much hassle.

+1


source







All Articles