Newest Post

Spring Security 3.1.0.RC2 Released

Read more

Spring Social 1.0.0.M3 Released

Dear Spring Community,

We are pleased to announce that the third milestone release of the Spring Social project is now available!

The Spring Social project allows you to integrate APIs exposed by Software-as-a-Service (SaaS) providers such as Facebook and Twitter into your applications.

This is a big release for us. Some of the most exciting highlights of the 1.0.0.M3 release include:

  • One of the most complete Java bindings to Facebook's Graph API available, including operations for working with users, friends, feeds, user interests and likes, events, invitations, albums, photos, videos, groups, and checkins with Facebook Places.
  • A greatly expanded Java binding to Twitter's REST API, including operations for working with timelines, users, saved searches, trends, lists, favorites, direct messages, friends, and followers.
  • A new provider signin controller enabling a user to sign into an application using his or her SaaS provider account such as a Facebook or Twitter account.
  • Enhanced extensibility, which includes a walkthrough of how to extend Spring Social to add support for new service providers.
Read more

Getting Started with Redis, Spring Data & Cloud Foundry

One of the drivers behind the popularity of NoSQL solutions is performance (especially) under heavy loads. Due to their data model, key value stores lead the pack, providing lightweight yet flexible means of working with data. In this entry, I am going to quickly showcase what it takes to work with a key value store (Redis) using Spring (Spring Redis) through one of Spring Data samples (RetwisJ) and deploy the app into the cloud (through Cloud Foundry) to share it with the world. I am going even further by using Windows, as a deployment platform for a change.

Read more

This week in Spring: April 26th, 2011

Another week, another great allotment of new content that - as usual - draws from the community and from SpringSource. The enthusiasm for CloudFoundry continues unabated this week, with some interesting content in this week’s roundup. For more content on CloudFoundry, you might consult the and sites. In particular, the slides from the Cloud user group held the day after the announcement are available here.

  1. Oliver Gierke has posted a blog on Advanced Spring Data JPA which explains how to use the features in the Spring Data JPA project that elevate the art of JPA programming, like the integration of the QueryDSL library. This post - and the library - speak to the ongoing, first-class support in the Spring frameworks for all data access technologies, be they RDBMS, NoSQL, or anything else.
  2. Peter Ledbrook, Grails Developer Advocate, has recently expanded on his original blog on using Grails and CloudFoundry. This blog provides a detailed look at using Grails' GORM support with the various data stores available on CloudFoundry. Check it out!
  3. Alex Popescu’s MyNoSQL portal, MyNoSQL, has some interesting comments about the NoSQL options supported in CloudFoundry. He comments that “From a storage perspective, Cloud Foundry is encouraging polyglot persistence right from the start offering access to a relational database (MySQL), a super-fast smart key-value store (Redis), and a popular document database (MongoDB).”

    This post - and indeed the entire site - is a very valuable resource for CloudFoundry users that want to exploit the NoSQL options, but don’t understand the use cases yet. There’s a lot of good content on both MongoDB and Redis, for example.

  4. Mark Thomas, Apache Tomcat 7 release manager and engineer, has written up a post on Apache Tomcat 7’s session fixation protection security feature on the website. Keeping on top of the latest Tomcat security features is important if you are, like the majority of developers, using Tomcat (or hardened, ops-friendly derivatives like SpringSource’s tcServer) as a production server for your Java (and often Spring) applications. Additionally, Tomcat’s bundled with several application servers. Either way, knowing about Tomcat’s industry-leading features can only help.
  5. Costin Leau has announced the Spring GemFire 1.0.1 release, which incorporates bug fixes and promotes stability.
  6. <li>Just a reminder to our European community members, the S2G Forum Series will be held in <a href="">Amsterdam (May 26th)</a> and <a href="">London (May 31st)</a>. There will be tons of great sessions about Spring, Groovy and Grails as well as talks focused specifically on CloudFoundry, Tomcat and Gemfire so be sure to <a href="">register for the event</a> closest to you. 

  7. The Eclipse Virgo 2.1.1 and SpringSource dm Server 2.0.5 projects have just been released.
  8. Jon Brisbin has recently blogged about integrating RabbitMQ with Riak to build a highly scalable eventing model.
  9. Gordon Dickens is at it again! He’s written a blog post, Don’t Use the JmsTemplate in Spring! Once you get past the headline and read the post, I think you’ll agree it might be better titled “Don’t Use the JmsTemplate in Spring, Use Spring Integration!”

    It’s a great post and it captures the thought trail that leads people to Spring Integration: they like the simplicity and power of Spring’s JmsTemplate, but want to enjoy the same programming paradigm in other challenges.
  10. What’s in My Spring Context? Gordon Dickens writes what amounts to a conversation between him and the Spring ApplicationContext - the keeper of all beans. The Spring ApplicationContext is very powerful, and can be interrogated to understand the structure and shape of your object graph. Great post, with easy-to-use code!
  11. ThoughtWorks employee Mark Needham has written HTML encoding/escaping with StringTemplate and Spring MVC, which provides a recipe to write a custom view resolver in Spring MVC. Spring MVC’s strikes the nearly perfect balance between convenience and power in this case. Spring MVC, of course, has several good, pre-provided options for view resolution, but is flexible enough to support new ones.

  12. David Salter has written a post introducing deployment of a database-centric application to CloudFoundry. His example includes deployment tips and information on how to use Spring 3.1 profiles to let the application use the correct, environment-specific DataSource. Nice article!
  13. David Salter has written a follow up blog on migrating older Spring MVC Controller-hierarchy based applications to the annotation-centric model introduced in Spring MVC 2.5, four years ago. In this blog, he talks about converting form-processing controllers, of type FormController. Check it out! A fascinating read and it’s nice to see how much configuration and Java code just falls away in the new programming paradigm!
  14. Nicolas Frankel has written about his experiences using the CloudFoundry public cloud and project. He writes in terms of a developer that has used the Google App Engine, so it’s a particularly compelling story with lots of details.
Read more

Advanced Spring Data JPA - Specifications and Querydsl

In my last blog post I introduced the basic feature set of Spring Data JPA. In this post I’d like to dive into some more features and how they can help you simplify data access layer implementation even further. The Spring Data repository abstraction consists of an interface based programming model, some factory classes and a Spring namespace to easily configure the infrastructure. A typical repository interface looks something like this:

public interface CustomerRepository extends JpaRepository<Customer, Long> {

  Customer findByEmailAddress(String emailAddress);

  List<Customer> findByLastname(String lastname, Sort sort);

  Page<Customer> findByFirstname(String firstname, Pageable pageable);
Read more

Spring GemFire 1.0.1 Released for Java and .NET

Dear Spring Community,

I am pleased to announce that 1.0.1 GA release of the Spring GemFire project is now available for both Java and .NET! The Spring GemFire project aims to make it easier to build Spring-powered highly scalable applications using GemFire as distributed data management platform.

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

Java: JavaDocs | Reference Documentation | Changelog
.NET :  ApiDocs  | Reference Documentation | Changelog

The Spring GemFire project aims to make it easier to build Spring-powered highly scalable applications using GemFire as distributed data management platform.

Read more

Eventing Data with RabbitMQ and Riak

As new applications take advantage of the scalability benefits of message brokers like RabbitMQ and cloud-scale datastores like Riak, it’s inevitable that the two should become fast friends (the kind who actually talk to each other in person rather than the kind whose only contact is through Facebook).

So many of the applications we find ourselves writing these days have these two functions in the same application. Very often we want to update data as the result of a message or send a message as the result of updated data. Two new utilities facilitating RabbitMQ and Riak integration allow you to do either directly inside their respective servers.

Read more

Deeper into Grails & Cloud Foundry

In my previous post, I showed you how easy it is to deploy a Grails application to Cloud Foundry using the corresponding plugin. Hopefully that whetted your appetite and you are ready to look at a more complex Grails application that demonstrates the power of the GORM plugins and stretches the Cloud Foundry services. If you don’t have a Cloud Foundry account yet, please be patient. The response to the announcement has been phenomenal so it is going to take some time to work through the backlog of requests.

Read more

This week in Spring: April 19th, 2011

Welcome back to This Week in Spring. The enthusiasm for last week's Cloud Foundry announcement was outstanding and appears to be getting stronger! People all over the world have flooded the SpringSource and CloudFoundry forums, downloads pages and source repositories. What unprecedented activity!

Many of the different, powerful technologies coming out of SpringSource recently have been leading up to the Cloud Foundry release so I invite you to review some of the exciting stuff that's come out in the last few months that have become even more interesting in terms of the cloud and Cloud Foundry: Spring Gemfire, Spring AMQP, Spring 3.1 profiles, Spring 3.1 caching abstraction, Spring Data, Spring Integration support for NoSQL, and Spring Hadoop, vFabric Hyperic, vFabric RabbitMQ, and vFabric GemFire. Of course, for all of these technologies - the first, and best, tooling and development experience continues to be SpringSource Tool Suite and Spring Roo.

Read more

Spring Data Graph 1.0 with Neo4j support released today

This announcement post is a guest contribution by the developers of the Neo4j team that worked closely with SpringSource’s Spring Data team to provide the Spring Data Graph integration library.

Spring Data Graph Logo

For a friendly introduction to Spring Data Graph we’re hosting a free webinar with VMware presented by Neo Technology’s CEO Emil Eifrem on April 20 at two convenient times for the Americas and Europe. [Update: The webinar video is now available on youtube in the SpringSourceDev channel.]

Now that Spring is in the air, the Neo4j and Spring Data teams are happy that almost a year’s worth of work has produced our 1.0 version of the Spring Data Graph library. The Spring Data project aims to bring the convenient programming model of the Spring Framework to NOSQL databases. Spring Data Graph supports graph databases within Spring Data and includes support for Neo4j as its first supported implementation.

Read more