The Spring Blog

Engineering
Releases
News and Events

Spring Security in Google App Engine

Spring Security is well-known for being highly customizable, so for my first attempt at working with Google App Engine, I decided to create a simple application which would explore the use of GAE features by implementing some core Spring Security interfaces. In this article we’ll see how to:


  • Authenticate using Google Accounts.

  • Implement “on-demand” authentication when a user accesses a secured resource.

  • Supplement the information from Google Accounts with application-specific roles.

  • Store user account data in an App Engine datastore using the native API.

  • Setup access-control restrictions based on the roles assigned to users.

  • Disable the accounts of specific users to prevent access.

Read more...

GORM Gotchas (Part 3)

It’s great to hear that people are finding these articles useful, so it’s with great pleasure that I add another to the series. This time I’m going to talk about associations again, but with the focus on when they are loaded into memory.

Update 2 Aug 2010 I have added more information on eager fetching with one-to-many relationships because there are some issues you need to be aware of.

It's cool to be lazy

One of the first things people learn about GORM relationships is that they are loaded lazily by default. In other words, when you fetch a domain instance from the database, none of its relations will be loaded. Instead, GORM will only load a relation when you actually use it.

Read more...

Spring MVC 3 Showcase

Since the big Spring 3 release last year, I’ve been working on a number of application development projects and extracting “showcases” of various framework features. These “showcases” are not reference applications or tutorials, they’re more like acceptance tests for specific framework capabilities. After seeing a showcase, you should have a good idea of what the technology can do.

The first showcase I’ve put together is for Spring MVC 3, our web framework. It includes a sample project, along with a supporting slide presentation and screencast. After digging in, you should have a good understanding of what Spring MVC can do and get a feel for how easy it is to use.

Read more...

Grails tooling improvements in SpringSource Tool Suite 2.3.3 M2

The recently released STS 2.3.3 M2 introduced a series of enhancements to our Grails support for Eclipse. In this article I’ll be discussing what you can expect to find if you try it out (grab it here: SpringSource Tool Suite).

Groovy-Eclipse


Eclipse-Con 2010 New and Noteworthy

  • refactoring support: now supporting extract method, extract constant, extract local variable
  • improvements in code formatting and indentation


Getting a new perspective


Window>OpenPerspective>Grails

Grails Perspective

Also, related to plugins, we have a new Grails Plugin Project wizard. This is very similar to the Grails Project Wizard, but instead of running create-app, it will cause the create-plugin command to run. With this new wizard and the new support we have for local (inplace) plugins, it is much easier to develop your application following a plugin oriented architecture.

Read more...

Spring AMQP 1.0.0.M1 Released

We are pleased to announce that the first milestone release of the Spring AMQP 1.0 project is now available for both Java and .NET!

Download it now: Spring AMQP for Java | Spring AMQP for .NET

Spring AMQP makes common Spring idioms available to developers who are building AMQP-based messaging solutions. For example, building a messaging application that uses RabbitMQ as a broker will feel quite similar to building an application based on Spring’s JMS support. To learn more about the project, visit the Spring AMQP Homepage. There you will find links to the Reference Manual, Forum, Issue Tracker, and more.

Read more...

Spring Roo 1.1.0.M2 Released

I’m pleased to announce we’ve just released Spring Roo 1.1.0.M2 (download here). We’ve also concurrently released SpringSource Tool Suite 2.3.3.M2, which offers the latest integration with this new Spring Roo release. For production use we recommend you continue to use Spring Roo 1.0.2, although we know a very large number of people are happily using the Roo 1.1.0 development releases as well.

What's New?

So, what’s included in the new Spring Roo 1.1.0 Milestone 2? Well, there’s 140 fixes, improvements and enhancements since Milestone 1. Some of the highlights include:

Read more...

New Milestone Update for SpringSource Tool Suite: 2.3.2.M2

SpringSource has just released a new milestone version of SpringSource Tool Suite: 2.3.2.M2. STS provides the best Eclipse-powered development environment for building Spring and Grails powered enterprise applications. Here are some highlights from the release:

Read more...

Introducing the Flex Addon for Spring Roo

Recently we released the first milestone of the Flex Addon for Spring Roo as a part of the Spring BlazeDS Integration 1.5.0.M1 distribution. This addon aims to bring the productivity and usability benefits of Spring Roo to the development of Spring-based RIAs with Flex. The below 15 minute screencast (split into two parts) serves as a quick introduction to the addon and its capabilities. Watch as we go from installation of the addon to a fully functional Flex application backed by Spring in just a handful of commands.

Read more...

5x startup performance boost in Virgo milestone M02

Virgo 2.1.0.M02-incubator is available for download. Apart from completing the “getting started guide”, this milestone dramatically reduces startup time - by as much as 5x on some systems.

This should be a further incentive for users of dm Server to migrate to Virgo: Virgo is the codebase for future development, has more liberal licensing, and now provides much faster startup.

Measurements

We measured elapsed time for a warm startup (i.e. without -clean) of the Virgo web server and compared milestone M02 to M01.

Read more...