Spring Roo: The Answer To Real Rapid Application Development?
Join the DZone community and get the full member experience.Join For Free
at the very end of 2009, spring roo ga was released, providing java enterprise developers with a huge productivity boost. similar in philosophy to ruby on rails, and with upcoming flex & gwt support, spring roo could be the most significant new development tool for the java community. in this article, i'll give a quick introduction to roo, as well as speaking with it's creator, ben alex, about it's exciting future.
what is spring roo all about?
spring roo is a development time tool that provides ongoing productivity in java. while other tools give you that initial jumpstart, and then leave you to do the rest yourself, roo continues to sit alongside the developer for the entire application lifecycle, continuing to look after parts of the application for you.
roo's mission is to fundamentally and sustainably improve java developer productivity without compromising engineering integrity or flexibility.
roo could be compared with ruby on rails. both aim to provide productivity in the building of
request-response web applications. roo has a similar approach to
rails have an active persistance pattern. in roo, persistance methods are put inside the entities, which
means that an object is provided with methods such as findbyid or
remove. there's no need to do any persistance related configuration.
the full lifecycle, from an empty directory to deploying on a server,
is enabled in roo.
as roo runs on the jvm it has a lot of performance characteristics: there's no engineering tradeoff in using roo. unlike a lot of other applications, you don't have a lot of refactoring to do by removing roo. you also don't get any extra cpu time or memory consumption at runtime. roo has no technology lock-in, no impact on performance and no additional memory consumption.
we believe roo fills a very sweet spot between the power of existing ides, the productivity potential demonstrated by modern web rad frameworks, and the deep desire for java developers to have a tool that works the way they want to work and reflect the engineering principles that they value. this has resulted in a non-invasive background tool that is exceptionally easy to learn how to use, can be applied to both existing and new projects, and streamlines the development of world best practise applications at extraordinary speed.
roo has a really easy to use shell for getting your application together. in fact, roo's author claims that you can get an application built in 10 minutes . we've embedded the tutorial video here so that you can see how easy it really is. there's no programming in this 10 minute test, it's all interaction with the roo shell.
the spring roo site has a useful reference guide that brings you through further customization of your web application such as editing jsps and changing the look & feel.
and now, onto my interview with ben alex,the man behind the technology.
james: is roo just intended for server-side application development?
roo is used to create server side enterprise applications. spring roo has the same key features that an ide has, without aiming to be an ide. it is only used at development time, so when you roll out the application you developed with roo, there's no evidence that you used it in the application creation, just as when you build an application using netbeans or springsource tool suite.
we started by building mvc request-response applications. we're currently working on support for client-side applications, with a focus on flex and google web toolkit in the next version of roo.
james: when will we see a version for these type of client-side applications?
ben: you can try it off the trunk right now, we haven't shipped a version of this yet. we're working on a downloadable, usable version of roo that will build a gwt application for the second quarter of 2010. automated the building of flex and gwt applications will be a huge benefit to java developers.
also, in q1 we want to add support for database introspection, so you can get roo to turn your existing database into a webapp. we're also making it easier, and much more elegant to write the jsp pages.
james: what is the output of a roo application?
ben: with roo, we asked how could we build a framework with the fewest barriers to adoption. first of all you'd need to be able to program in java. secondly, we wanted to be able to use all the technologies and standards that are ubiquitous, like the maven build system. so, when you use roo, it'll set up maven correctly for you. about 75% of enterprise applications that we surveyed use maven, so developers using roo get the added benefits of using maven. similarly, we use spring and so on for all the major technologies. the same technologies that have been behind their applications up to now are in use with roo.
the adoption barrier is next to nothing, as there is no abstractions on top of the common technologies, using them in their native form. and there's no lock-in: you can remove roo from your project in about 3 minutes if you decide you don't need roo anymore.
shows the list of technologies that roo supports out of the box)
james: can you give a bit of history into the evolution of spring roo?
ben: back in 2005, i was building a lot of applications, and all of these apps were doing the same thing. i thought it was quite tedious, so i put together a tool to help me out. we never released it, but i showed the tool at a couple of conferences and people were quite excited about what it could do. i was busy doing other things at the time, i started the australian subsidiary of springsource, and i was leading spring security.
towards the end of 2008, i picked it up again and did a prototype. i showed it to a few colleagues at springone that year, and they all loved it. for the first four months of 2009 i worked full time on roo, after it had been approved as a project. in april 2009 we made it available in alpha form for people to download and try out. after a series of development releases, spring roo ga was released on dec 31 2009.
(you can read a more
in the spring roo project documentation)
james: why isn't there a bigger fuss about spring roo? it seems deserving of more attention?
ben: we're seeing a lot of feedback, and it's showing up at a lot of conferences. it's very popular on the spring framework community site forum. i'm happy for it not to snowball out of control just yet, at least until we release spring roo 1.1, where the request-response mvc features will be much better.
one of the challenges for frameworks like roo, is that people who program in java already have their own ways of doing things. so when new tools come along, they provide an improvement, but it takes a while to capture the imagination. if it was written in clojure there would be a big fuss, as it's one of the latest trends. but as it's written in java, that makes it's adoption in the enterprise easier, as that's what people are writing their web applications in right now - proven and approved technologies. the
list of technologies that we mentioned earlier contains the dominiant technologies in the java space.
james: i really like that it's all built around java. after investing so much time in java, it's comforting to see that you've taken that approach.
ben: that philosophy is unbelievably frequent, people are interesting in new technologies, but everyone generally has a day job and want to be productive with the things that they've spent time learning. and as you're editing the application, because you're using mature, standard java technologies, it's easy to find your way around any problems that might come up.
coming up next: i'll be taking the ten minute test with the latest release of roo and will be taking a look at what's new.
Opinions expressed by DZone contributors are their own.