The Spring Blog

Engineering
Releases
News and Events

Green Beans: Getting Started with Enterprise Messaging and Spring

In this post, we will introduce the core concepts of messaging, as well as the rich support for various types of messaging that the Spring framework and its sister projects provide.

What is Messaging? To best explain this, I’ll paraphrase the example offered by the groundbreaking Enterprise Integration Patterns book by Gregor Hohpe and Bobby Woolf (Addison Wesley, 2004). When you make a telephone call, you attempt to relay information to another party. This only works if the second party is available when you place the phone call. Because it is not always possible to answer phone calls, we use a voice-mail boxes to queue the messages. Callers leave messages in the voice-mail box and the callee is then free to retrieve the message (or, indeed, many messages) at a later point, asynchronously.

Read more...

SpringOne 2GX 2010 Tech Talk: What's New in Spring Integration 2.0?

SpringOne 2GX 2010 Tech Talk: What's new in Spring Integration 2.0
SpringOne 2GX 2010 InfoQ Mark Fisher Oleg Zhurakousky What's New in Spring Integration 2.0

Mark and Oleg use code-centric demos to describe how Spring 3.0 features have been integrated in Spring Integration, what enterprise integration patterns have been implemented and where channel adapters and gateways have been updated. They demonstrate the new STS tooling support for Spring Integration and discuss some of the future features and direction for the project.

This presentation is a great way to get introduced to Spring Integration 2.0. The GA release of 2.0 followed less than one month after this talk so all the topics covered are up to date with the current release. Again many thanks to InfoQ for covering SpringOne 2GX 2010.

Read more...

This week in Spring: January 18th, 2011

Another fantastic week for the Spring community at large. In addition to the exciting announcement of the stable release of Tomcat 7, there were numerous great posts from the community.

  1. Continuing the back-to-basics “Green Beans” series, we’ve just published a post on using Spring and Maven together.
  2. The Tomcat Expert community has announced the first stable build of Tomcat 7. We know Tomcat is the favorite place for Spring developers to run their applications, so be sure to check out the latest features.
  3. Nicholas Sankel has written up a blog on using Spring Roo with the Vaadin UI framework.
  4. The Tomcat Expert community has provided a list of the top 10 articles from 2010.
  5. Tomasz Nurkiewicz has written a fantastic blog exploring how you can completely strip out XML using the Spring framework.

  6. Sivaprasadreddy Katamreddy
    has written up an introduction to Spring AOP
    that progresses from problematic code all the way to the improved code using Spring AOP.

  7. A gentleman named (from what I can tell) Warlock has blogged on Spring MVC’s annotation-based session-handling support.
  8. Sal Peace has written up a fantastic introduction to using Spring MVC 3.0’s portlet support with WebSphere 7.
  9. Viral Patel has written up a tutorial on saving and retrieving BLOB object data in Spring 3 MVC and Hibernate
  10. Jorram Barrez (from the Activiti project) has posted on using Spring to connect an Activiti BPMN 2.0 business process to EJB business services.
Read more...

Green Beans: Getting Started with Maven and Spring

Apache Maven is a popular open source tool that offers a convention-over-configuration approach to project build management. Indeed the Eclipse Community Surveys show Maven increased its adoption from 8% in 2009 to 28% in 2010, underscoring its usefulness in a wide range of project settings. Even though you can use Spring without using Maven, there are many reasons to recommend its use to Spring developers. In this post I’ll show you how to get started using Maven, and how to use it successfully with Spring libraries, repositories and tooling like SpringSource Tool Suite and Spring Roo.

Read more...

SpringSource Tool Suite 2.5.2 Released

Dear Spring Community

I’m pleased to announce that we just released SpringSource Tool Suite (STS) 2.5.2.RELEASE.

Some highlights from the new release:

  • Support for Spring Roo 1.1.1.RELEASE
  • Easy creation of new tc Server instances
  • Improved graphical Spring Web Flow editor
  • Agent-based reloading (experimental)
  • A large number of improvements to the Spring and Groovy/Grails tooling
  • Integration of Spring User Agent Analysis (UAA)

More details on new features and bug fixes can be found in the New and Noteworthy document. Detailed installation instructions are also available.

Read more...

Spring Web Services 2.0 Released

After being in the works for almost a year, I’m happy to announce that Spring Web Services 2.0 has been released! In this post, I’d like to go over some of the major new features.

Java 5+ and Spring 3.0 Required

As you are probably aware, we moved the Object XML Mapping (OXM) module from the Spring-WS project into Spring 3.0. As such, it was a bit problematic to use Spring-WS 1.5 (with its own OXM module) with Spring 3.0, due to conflicting classes in the org.springframework.oxm package.

As of version 2.0, we no longer ship the OXM module as part of Spring-WS, but depend on Spring’s OXM instead. As a result, Spring Web Services 2.0 requires Spring 3.0 to work. Normally, we tend to be a bit more lenient with regard to version requirements, not necessarily requiring the latest Spring version, but this was the only way to make things work.

Read more...

What's New In Spring Roo 1.1.1

It’s our pleasure to announce the general availability of Spring Roo 1.1.1. This new release incorporates over 250 fixes and enhancements, including many performance and functionality improvements.

As always, SpringSource Tool Suite (STS) 2.5.2 will be released very shortly and incorporate this new version of Spring Roo. You can also download the standalone version of Spring Roo 1.1.1 and get started immediately.

Let’s briefly tour some of the more notable enhancements we’re added to Roo 1.1.1. If you’re upgrading your Roo-based projects, we encourage you to review the version-specific upgrade notes we include in the reference guide. The reference guide is also included in the download ZIP in both HTML and PDF formats.

Read more...

Green Beans: Getting Started with Spring in your Service Tier

All applications stem from a domain model. The term “domain model” describes the nouns, or data, in a system that is important to the problem you’re trying to solve. The service tier - where business logic lives - manipulates the application data and must ultimately persist it (typically, in a database). The explanation is simple, but in practice building a good service tier can be a daunting task for any developer. This post will introduce developers to the options available in the Spring framework for building a better service tier. It is assumed that the reader has some experience with the SQL language, and - more critically - that the reader is familiar with basic Spring dependency injection and configuration concepts. The source code for this project is in the Spring Samples project under SpringSource’s Git repository.

Read more...

Green Beans: Getting Started with Spring MVC

Spring MVC, a part of the core Spring Framework, is a mature and capable action-response style web framework, with a wide range of capabilities and options aimed at handling a variety of UI-focused and non-UI-focused web tier use cases. All this can potentially be overwhelming to the Spring MVC neophyte. I think it’s useful for this audience to show just how little work there is to get a bare Spring MVC application up and running (i.e. consider my example something akin to the world’s simplest Spring MVC application), and that’s what I’ll spend the rest of this article demonstrating.

Read more...

Spring Web Services 2.0.0.RC2 Released

Dear Spring community,

We are pleased to announce that Spring Web Services 2.0 Release Candidate 2 has been released!

This is the second release candidate in the 2.0 release cycle. The most important new feature in this release is the update of the Spring-WS XML namespace, which now contains <sws:annotation-driven/> and <sws:interceptors/> elements (similar to the Spring-MVC namespace), and <sws:static-wsdl/> and <sws:dynamic-wsdl/> for exporting your WSDLs. All of these features are described in the updated reference documentation.

Read more...