Adding an Atom view to an application using Spring's REST support

Engineering | Alef Arendsen | March 16, 2009 | ...

In Spring 3.0, Spring MVC will be augmented with REST support. This post describes how to use the REST support to implement an AtomView on top of a simple sample application. Follow this step-by-step process to see how easy it is to implement an AtomView on top of a simple application with the new REST support in Spring MVC.

Step 1: Download the application skeleton

Attached to this blog entry, near the bottom, you will find a simple download that holds a skeleton for a web application. Inside, you will find all Spring 3.0 binaries needed for this application, plus a few extras needed for the Atom functionality. The Spring binaries are based on a nightly build and might be replaced with the final builds once Spring 3.0 has gone final.

Next, load up the project in Eclipse, using the 'Import > Import Existing Projects into Workspace' wizard (from the File menu). The application is a simple Eclipse Dynamic Web Project with all the infrastructure for Spring MVC setup. So if you are familiar to Spring MVC…

Grails 1.1 Released

Engineering | Graeme Rocher | March 10, 2009 | ...

Hot on the heels of the Groovy 1.6 release, we are pleased to announce that Grails 1.1 final is out and available from the Grails site. There are numerous improvements that are listed in detail in the release notes. However, some of the key ones are:

Standalone GORM: It is now possible to use Grails' ORM layer (built on Hibernate) outside of Grails. There is an example that uses GORM inside a Spring MVC application in the samples/petclinic-mvc directory of the distribution. The example configures a GORM enabled SessionFactory using Spring as follows:

<gorm:sessionFactory base-package="org…

REST in Spring 3: @MVC

Engineering | Arjen Poutsma | March 08, 2009 | ...

In the last couple of years, REST has emerged as a compelling alternative to SOAP/WSDL/WS-*-based distributed architectures. So when we started to plan our work on the next major release of Spring - version 3.0, it was quite clear to us that we had to focus on making the development of 'RESTful' Web services and applications easier. Now, what is and isn't 'RESTful' could be the topic of a whole new post all together; in this post I'll take a more practical approach, and focus on the features that we added to the @Controller model of Spring MVC.

A Bit of Background

Ok, I lied: there is some background first. If you really want to learn about the new features, feel free to skip to the next section.

For me, work on REST started about two years ago, shortly after reading the highly recommended book RESTful Web Services from O'Reilly, by Leonard Richardson and Sam Ruby. Initially, I was thinking about adding REST support to Spring Web Services, but after working a couple of weeks on a prototype, it became clear to me that this wasn't a very good fit. In particular, I found out that I had to copy most of the logic from the Spring-MVC DispatcherServlet

OSGi Development Tools in STS 2.0

Engineering | Christian Dupuis | March 05, 2009 | ...

Yesterday we published a final release candidate build of the upcoming SpringSource Tool Suite version 2.0. The RC build is available for Windows, Mac OS X and Linux from the STS product page.

STS 2.0 is equipped with new productivity tools for developing Spring applications, like Quick Fixes, as-you-type validation and correction, project and bean creation wizards as well as a Visual Spring Configuration Editor and more. Stay tuned for more information on these new features.

Additionally STS 2.0 comes with tools for OSGi-based application development that experienced as well as new adopters…

Groovy 1.6 released under the SpringSource umbrella

Engineering | Guillaume Laforge | March 04, 2009 | ...

I'm very pleased to report here the very recent release of Groovy 1.6, which happened under the SpringSource umbrella, since the acquisition of G2One by SpringSource.

Groovy dynamic language for the JVMGroovy 1.6 is a very important milestone for the project, bringing tremendous performance improvements making Groovy the fastest dynamic language for the JVM, as well as several new powerful features adding more weapons to your dynamic language arsenal.

In particular, beyond the usual bug fixes and minor enhancements, let me mention the following novelties:

  • multiple assignments
  • optional return in if/else and try/catch blocks
  • AST transformations and all the provided transformation annotations like @Bindable, @Vetoable, @Singleton, @Lazy, @Immutable, @Delegate, @Category, @Mixin and @Newify
  • the Grape module and dependency system and its @Grab transformation
  • various Swing builder improvements, thanks to the Swing / Griffon team
  • as well as several Swing console improvements
  • the integration of JMX builder
  • JSR-223 scripting engine built-in
  • various metaprogramming improvements, like the ExpandoMetaClass Domain-Specific Language, per-instance metaclasses even for POJOs, and runtime mixins
  • OSGi readiness with the Groovy JAR being a full-blown OSGi bundle
A very detailed article on InfoQ, entitled "What's new in Groovy 1.6?", delves into all these new features and enhancements, with code samples and explanations.

If you wish to learn more about Groovy, and in particular Groovy 1.6, you should definitely consider attending SpringOne Europe, in April, where sessions on Groovy and Graills

Building Spring 3

Engineering | Chris Beams | March 03, 2009 | ...

UPDATE - Feb 21 '12: Spring Framework has moved to GitHub, and for 3.2.x development has moved from Ant to Gradle. Take a look at the building from source section of the README there for (greatly simplified!) instructions.


As Juergen announced last week, Spring 3.0 Milestone 2 is now available. In this post, I'll show you in six steps how to download and build the latest Spring 3 sources and get a development environment up and running in Eclipse.

We'll wrap up by discussing the best ways to follow Spring 3 development, how to file bugs and improvement requests, and considerations for…

Spring Integration on dm Server

Engineering | Iwein Fuld | February 27, 2009 | ...


In this blog post I will show you how to create a loosely coupled and scalable application with Spring Integration and dm Server. The added benefit of using OSGi will allow us to change the behavior of the application at runtime and of course we're going to have some fun with that too. First I will quickly highlight the reasons for designing an application for concurrent use, then I will describe different strategies of integrating OSGi bundles with Messaging. Along the way you will get a glimpse of our tooling and some of the dm Server features. You should be able to do this yourself, if you…

Spring Framework 3.0 M2 released

Engineering | Juergen Hoeller | February 25, 2009 | ...

We are pleased to announce that the second Spring 3.0 milestone is finally available (download page). This release comes with a wealth of revisions and new features:

Further Java 5 style API updates: consistent use of generic Collections and Maps, consistent use of generified FactoryBeans, and also consistent resolution of bridge methods in the Spring AOP API. Generified ApplicationListeners automatically receive specific event types only. All callback interfaces such as TransactionCallback and HibernateCallback declare a generic result value now. Overall, the Spring core codebase is now…

Next Amsterdam Java Meetup - March 13th

Engineering | Alef Arendsen | February 23, 2009 | ...

Due to the extensive travel schedule of yours truly, we haven't had a meet up since last September. It's been almost half a year, so it's about time for another one.

But, before we move on, I'd like to make point out a new Google Group that we have set up, to keep you posted about this. I received a lot of requests to set up a mailing list over the past few years, so from now on, the main place to keep an eye on, for new Java Meetup dates, is the Java Meetup Google Group. Sign up there to get the dates delivered right to your inbox.

Okay, on to the details for the next meetup:

  • When: March 13th 2009
  • Where: De Jaren - Nieuwe Doelenstraat, Amsterdam (map, below)
  • Time: starting 5.30pm
  • What: drinks and chats, about... well, everything

From Central…

Programming Language Popularity

Engineering | Shaun Connolly | February 23, 2009 | ...

My 13 year old son has been programming in Lua, TI Basic and Assembler, ActionScript, JavaScript, and he's into C++/Dark GDK these days. While I've mostly focused on Java for the past few years, I've programmed in a wide range of statically typed and dynamically typed languages.

Since my son is just starting his programming journey, I naturally wondered:

What are the most popular programming languages these days?

I used and to answer this question. Both sites provide programming language popularity statistics and rankings, and I was happy to see that Java, C, and C++ rank…

Get the Spring newsletter

Thank you!

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all