The Spring Blog

News and Events

Customizing Annotation Configuration and Component Detection in Spring 2.1

NOTE: This post has been updated as of May 31, 2007 to reflect the state of the 2.1-M2 official release

Two weeks ago I blogged about the new annotation-driven dependency injection capabilities of Spring 2.1, and I mentioned that I would follow-up with more info "later in the week". It turns out that was a bit optimistic, but the good news is the functionality has evolved quite a bit in the meantime. Therefore, to follow along with the examples here you will need to download the 2.1-M2 official release (or if you are one of the first people to read this updated entry and M2 is not yet available, you should grab at least nightly build #115 which you can download here).


Conference Season Builds up to SpringOne!

It’s been a while since I had time to blog. We’ve been busy. We raised $10m. As Adrian has pointed out, we’ve been very active in product development. I’ve written more code myself than usual in the last couple of months. (Mainly on experimental stuff, which may or may not see the light of day, but it’s fun, and sometimes I do something that turns out to be useful.) I’ve spent a lot of time speaking to press and analysts; we’re getting huge press interest these days. Press/analyst calls can be tiring, but can also be valuable, as many of these guys are smart and ask thought-provoking questions.


New releases in the Spring Portfolio

Late last year we started talking about the notion of a Spring “release train”. The idea behind the release train is that we put out co-ordinated releases of the products in the Spring Portfolio: tested together and working together. You can still pick and choose the pieces you need, but it will be easier to use the various products together when you want to. We’re not there yet, but we’re on our way.

One of the struggles for us at Interface21 has been that the demand for our support services, training, and consultancy has been so high that we’ve been working everyone flat out to try and meet it. This has made it hard to get the consistent and predictable product development time we need to pull off something like a release train. That’s just one of the many reasons that I’m so excited about the recent announcement of the $10M investment that Benchmark Capital is making in Interface21 (press release). It will enable us to accelerate our product development efforts and bring you more great releases more quickly than we could in the past.


Acegi Security 1.0.4 Released

Acegi Security 1.0.4 is now available.

There are over 50 issues addressed in this release. Existing user can upgrade to release 1.0.4 with a simple JAR drop.

Please visit for a detailed changelog.

The project’s web site at provides additional information on Acegi Security’s features, access to online documentation, and links to download the latest release.

Please note that the next release of Acegi Security will be known as Spring Security 2.0.0 M1. We anticipate releasing this within the next 7-14 days, and it will offer Spring 2 namespace support.


Spring Web Flow Java One 2007 Demo

When Sun scheduled my JavaOne 2007 session on Spring Web Flow for Friday, the last day of the conference, I wasn’t sure what to expect. I was honored to have been accepted again this year, but I wondered what I would see in terms of attendance presenting on the last day of the 4-day conference.

I could not have been more pleased with how things transpired. When I checked in at speaker setup on Thursday 800 people had pre-registered for my Friday session. Fifteen minutes before my talk was to begin the room had reached that number. In the end, 1000 JavaOne attendees came to room 307-310 of the Moscone center to experience an adrenaline-powered Spring Web Flow test drive.


Annotation-Driven Dependency Injection in Spring 2.1

Spring 2.0 introduced annotation support and annotation-aware configuration options that can be leveraged by Spring users who are developing with Java 5 (or later versions):

@Transactional for demarcating and configuring transaction definitions
@Aspect (AspectJ) for defining aspects along with @Pointcut definitions and advice (@Before, @After, @Around)
@Repository for indicating a class that is operating as a repository (a.k.a. Data Access Object or DAO)
@Required for enforcing annotated bean properties are provided a value

Spring Framework 2.1 M1 released

Dear Spring Community,

We are pleased to announce that Spring 2.1 M1 has been released.  This is the first milestone release in the Spring 2.1 series, introducing major new features including annotation-based configuration, JCA-based message endpoint management, new "context" and "jms" XML configuration namespaces, and JDK 1.6 and Java EE 5 support.

Spring 2.1 M1 Released

See the associated press release for an overview of the major themes of the 2.1 release. Subscribe to the Interface21 Team Blog for discussion and examples of the new features.


Spring LDAP 1.2 RC1 released

Dear Spring community,

We are pleased to announce the first release candidate of Spring LDAP 1.2, with a number of features and bug fixes. Only the most important are listed here. For a complete listing, please see the changelog.
The release is available for download here.

  • Implemented client-side transaction support for Spring LDAP. See reference documentation for further information (LDAP-29).
  • Changed the exception hierarchy to be an unchecked mirror of the JNDI NamingException hierarchy (LDAP-4).
  • Exceptions thrown by Spring LDAP are now always Serializable, regardless of whether the wrapped NamingException is (which is not always the case) (LDAP-14).
  • Rewrote LdapEncoder.nameDecode() to solve problem with national characters and remove regular expression used in parsing, drastically improving Distinguished Name parsing performance as a bonus (LDAP-30).
  • Upgraded to Spring 2.0.4 internally. Spring 1.2.x is still supported (LDAP-35, LDAP-51).

Spring Web Flow Bean Scopes and JSF

I’ve recently finished up an interesting issue in Spring Web Flow. This issue (SWF-163) dealt with adding Spring 2.0 bean scoping support for Spring Web Flow’s internal scopes. The implementation isn’t really that interesting (the Scope interface is pretty easy to implement after all), but I wanted to mention exactly how you would use something like this in your application.

Spring 2.0 Scoping

In Spring 1.x, we had the idea of singleton and prototype bean scopes, but the notation was fixed and not especially descriptive with singleton=“[true | false]”. So in Spring 2.0, this notation was removed from the XSD style of configuration and now you see a notation that is more clear with scope=“[singleton | prototype | …]”. Spring itself adds three more bean scopes; request, session, and globalSession which are related to web applications.


Spring Framework 2.0.5 released

Dear Spring Community,

We are pleased to announce that Spring 2.0.5 has been released.  This is is a bugfix and enhancement release in the Spring 2.0 series, addressing all issues reported since 2.0.4 and introducing further concurrency improvements. We recommend to upgrade to Spring 2.0.5 from all previous 2.0.x releases.

Spring 2.0 Released


Please see the changelog and JIRA roadmap for all the details of the 63 issues addressed in this release.

Juergen Hoeller
Lead, Spring Framework Development
Interface21 -