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

Spring BlazeDS Integration 1.0.0.M2 Released

Releases | Jeremy Grelle | March 05, 2009 | ...

Dear Spring Community,

I'm pleased to announce that the second public development milestone of Spring BlazeDS Integration, the newest of the open source Spring projects, is now available.

Download | Reference Documentation | JavaDocs | Changelog

The main features of note that have been added in this release are integration with Spring Security, and simplified XML-namespace-based configuration.  The namespace support results in significantly simpler Spring configuration files than using the full <bean> syntax, especially when using the new security features.

The community has thus far been providing us with some great feedback, and I encourage anyone interested to get involved by trying out the new functionalityand giving us feedback in the community forum and Jira as we progress towards a full-fledged 1.0.

We are looking forward to releasing RC1 in the very near future with the final major new features being centered around messaging integration, including support for both basic Spring JMS, and for more complex routing scenarios using Spring Integration channels.  

In case you missed it, Christophe Coenraets from Adobe recently provided a great introduction to Spring BlazeDS Integration on Adobe TV.  

Jeremy Grelle
Spring BlazeDS Integration Lead 

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.

Introduction

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 Framework 3.0 M2 released (03/2009)

Releases | Adam Fitzgerald | March 02, 2009 | ...

If you aren't following the SpringSource blog you may have missed it, but last week Juergen Hoeller announced the availability of the second milestone for Spring 3.0. Juergen's blog post covers all of the details about the milestone including the new RestTemplate, early JPA 2.0 support, more Java 5 style API updates and other improvements.

You can always get the latest milestones, release candidates and full releases for Spring from the download center.

Spring Integration on dm Server

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

Introduction

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…

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

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

Learn more

Get support

Tanzu Spring 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