Author Archive for Rossen Stoyanchev

Spring Framework 3.2 RC1: Spring MVC Test Framework

Update Dec 19, 2012 The final Spring Framework reference documentation contains guidance on migration as well as a complete section on Spring MVC Test. Last week Juergen Hoeller announced the release of Spring Framework 3.2 RC1 and Sam Brannen discussed exciting additions in its spring-test module such as support for WebApplicationContext's and upcoming plans for Read more…

Spring MVC 3.2 Preview: Chat Sample

Last updated on November 5th, 2012 (Spring MVC 3.2 RC1) In previous blog posts I introduced the Servlet 3 based async capability in Spring MVC 3.2 and used the spring-mvc-showcase and the Spring AMQP stocks sample to demonstrate it. This post presents a chat sample where the external events are not AMQP messages but rather Read more…

Spring MVC 3.2 Preview: Adding Long Polling to an Existing Web Application

Last updated on November 5th, 2012 (Spring MVC 3.2 RC1) In my last post I discussed how to make a Spring MVC controller method asynchronous by returning a Callable which is then invoked in a separate thread by Spring MVC. But what if async processing depended on receiving some external event in a thread not Read more…

Spring MVC 3.2 Preview: Making a Controller Method Asynchronous

Last updated on November 5th, 2012 (Spring MVC 3.2 RC1) In previous posts I introduced the Servlet 3 based async capability in Spring MVC 3.2 and discussed techniques for real-time updates. In this post I'll go into more technical details and discuss how asynchronous processing fits into the Spring MVC request lifecycle. As a quick Read more…

Spring MVC 3.2 Preview: Techniques for Real-time Updates

Last updated on November 5th, 2012 (Spring MVC 3.2 RC1) In my last post I introduced the new Servlet 3 based, async support in Spring MVC 3.2 and talked about long-running requests. A second very important motivation for async processing is the need for browsers to receive real-time updates. Examples include chatting in a browser, Read more…

Spring MVC 3.2 Preview: Introducing Servlet 3, Async Support

Last updated on November 5th, 2012 (Spring MVC 3.2 RC1) Overview Spring MVC 3.2 introduces Servlet 3 based asynchronous request processing. This is the first of several blog posts covering this new capability and providing context in which to understand how and why you would use it. The main purpose of early releases is to Read more…

Spring 3.1 M2: Spring MVC Enhancements

This post focuses on what's new for Spring MVC in Spring 3.1 M2. Here are the topics: Code-based equivalent for the MVC namespace. Customizable @MVC processing. Programming model improvements. A brief reminder that the features discussed here are in action at the Greenhouse project. Code-based Configuration For Spring MVC As Chris pointed out in his Read more…

Spring 3.1 M1: MVC Namespace Enhancements and @Configuration

In this 5th post of the series describing Spring 3.1 M1 features, I will focus on web applications. In the first half I'll discuss enhancements to the MVC XML namespace. Then I'll show how to create the equivalent of the MVC namespace with all Java configuration. At the end I mention some of the Servlet Read more…

Spring Web Flow 2.2.0.M1 Released

I'm pleased to announce the first milestone of Spring Web Flow 2.2 is now available for download. The release is also available through the Maven milestone repository at http://maven.springframework.org/milestone. As with Spring Web Flow 2.1, this release requires JDK 1.5, Spring 3 and Spring Security 3. The main focus of the release is to address Read more…

Using a Hybrid Annotations & XML Approach for Request Mapping in Spring MVC

In Spring 2.5 it is possible to use annotations to configure all parts of a web application. Seeing annotations applied is particularly interesting in the Web layer where developers traditionally rely on the SimpleFormController and the MultiActionController for form page handling. The introduction of annotations has created a third option, one that does not require Read more…