Archive for September, 2010

Spring 3 dependency management issue

September 28, 2010

In 2010, Spring 3 was released and it was a significant event for all Java devs.

An open issue in Spring 3 is dependency (jar) management. Doc says to use external framework like Maven, ivy or OSGi. Having no experience with ivy, I started digging towards the other twos. Maven is what I love and successfully use for the last 2 years.

Mentioning here OSGi was quite a surprise for me. But the more I learned about the framework, the more I liked the approach it offers. Actually publish-find-bind services model is not new (there was UDDI 10 years ago) but keeping it in line with Java 5 and EJB 3 and being supported by Eclipse, SpringSource, Glassfish, JBoss, Weblogic and Websphere makes it a powerful competitor to Maven.

Also, there’s something interesting gonna happen around web UI in the next versions of Spring. They ditched support for Struts 1 so they have to offer something instead to take care for C in MVC. Webflow seems pretty perspective but  heaps of XML config must go to make the development less painful. It longs to be replaced with annotations – and they started to move towards it with @MVC. Web UI components should be managed and reused somehow and it’s absolutely unclear how to do it with screens, namespaces, templates, .js, .css, etc.