Cache Abstraction: JCache (JSR-107) Annotations Support

Engineering | Stéphane Nicoll | April 14, 2014 | ...

Spring's caching abstraction is available as from Spring 3.1 and it was about time to show it some more love. In this post, I want to walk you through the major improvement in that area which is the JCache (JSR-107) annotations support.

As you may have heard, JSR-107 went final after all, 13 years after the initial proposal. For those who are familiar with Spring’s caching annotations, the following table describes the mapping between the Spring annotations and the JSR-107 counterpart:

Spring JSR-107
@Cacheable @CacheResult
@CachePut @CachePut
@CacheEvict @CacheRemove
@CacheEvict(allEntries=true) @CacheRemoveAll

JavaScript modularity (without the buzzwords)

Engineering | Brian Clozel | April 11, 2014 | ...

Almost ten years ago Adrian Colyer wrote a memorable blog post, giving the best explanation on aspect oriented programming (AOP) out there: clear and simple style, accurate content, no buzzwords. If you've taken a look at the the earlier two posts in this series, you may have noticed some of our architecture choices in the client module of the Sagan application, including the use of JavaScript modules.

In this post, I want to walk you through the basics of JavaScript modules in the style of Adrian's post: clear, simple, accurate, no buzzwords!

Why JavaScript needs modularity too

If, like me…

Spring Batch 2.2.6.RELEASE is now available

Releases | Michael Minella | April 11, 2014 | ...

We are pleased to announce that Spring Batch 2.2.6.RELEASE is now available via Maven Central, Github and the SpringSource download repository. This is the 6th maintenance release for the 2.2.x branch of Spring Batch and addresses a number of bugs, a few minor enhancements, and documentation updates. Many thanks to all of those who submitted the many pull requests that went into this release.

Spring Batch Home | Source on GitHub | Reference Documentation

We look forward to your feedback.

Webinar: Building 'Bootiful'­ Applications with Spring Boot

News | Pieter Humphrey | April 08, 2014 | ...

Speaker: Josh Long

Alright, so maybe "bootiful" won't ever work, but I tried, and it was worth it too because you're reading this. Spring Boot, the new convention-over-configuration centric framework from the Spring team at Pivotal, marries Spring's flexibility with conventional, common sense defaults to make application development not just fly, but pleasant! Join Spring developer advocate Josh Long for a look at what Spring Boot is, why it's turning heads, why you should consider it for your next application (REST, web, batch, big-data, integration, whatever!) and how to get started.

Tuesday, April 15, 2014 3:00 pm (London, UTC+01:00) Register

Tuesday, April 15, 2014 10:00 am Pacific Daylight Time (San Francisco, UTC-07:00) Register

Webinar: Connecting Eclipse to the Cloud-Based Era of Developer Tooling with Project Flux

News | Pieter Humphrey | April 08, 2014 | ...

Speakers: Martin Lippert (Pivotal), Mike Milinkovich (Eclipse Foundation)

The Eclipse IDE (as one example) is great, but increasingly we are seeing new projects and companies working in the cloud-based developer tooling space, using a front-end that runs purely in the browser. The Eclipse Orion project is one example of this. While the new approaches look promising, they are usually completely disconnected from the existing desktop-class IDEs and are still lightyears away from working well for Java developers. In this webinar Martin Lippert will provide a sneak peek into Project Flux, a new project that is hosted at Eclipse and that we've been working on that aims at bridging this gap between existing desktop-class IDEs and future cloud-based developer tooling. While this project is still far away from shipping a ready-to-use release, the webinar provides an insight into the prototype and what is coming in the future. Special guest introduction from Mike Milinkovich, exec director of the eclipse foundation.

Tuesday, April 22, 2014 3:00 pm (London, UTC+01:00) Register

Tuesday, April 22, 2014 10:00 am Pacific Daylight Time (San Francisco, UTC-07:00) Register

Webinar: Web Application Diagnostics with Java and Javascript

News | Pieter Humphrey | April 08, 2014 | ...

Speakers: Josh Long (Pivotal) and Ashley Puls (New Relic)

There is more and more usage of Javascript on the client side today. Many are starting down the difficult path of full blown application development in JS on the client side, going beyond having a simple rollover menu logic or presentation component. But tracking and tracing effectively means looking at the whole application, not just the front end. New Relic can be used either in development or production to diagnose hybrid Javascript/Java applications. In this session, Josh Long (Pivotal) and Ashley Puls (New Relic) will show how you can track and trace your way through today's hybrid Java web apps - resolving slow page loads, blocked threads, slow queries, etc.

Tuesday, April 30, 2014 3:00 pm (London, UTC+01:00) Register

Tuesday, April 30, 2014 10:00 am Pacific Daylight Time (San Francisco, UTC-07:00) Register

This Week in Spring - April 8th, 2014

Engineering | Josh Long | April 08, 2014 | ...

Welcome to another installment of This Week in Spring!

Tomorrow, I'll be presenting on the vJUG, a virtual JUG, about Spring Boot. Don't tell anyone, but the presentation itself is going to be based on a talk that Spring Boot co-founder Phil Webb and I have been planning. The code is already online, so check it out and I look forward to seeing you tomorrow! If you miss the talk, and you happen to be in the bay area, then join us on Thursday evening at the Pivotal offices here in San Francisco for a more caffeinated version of the same talk with both Phil and myself!

Then, this Sunday, I'm off to spread the Spring love! I'll touchdown first in Paris for Devoxx FR. From there, it's off to Bangalore, India, for the Great Indian Developer Summit. I haven't been there since 2012 and am very much looking forward to it and to seeing the amazing Spring community there. Then, on my way home I'll pop in to Belgium for a talk at the Belgium JUG

Spring Boot 1.0.1.RELEASE Available Now

Releases | Dave Syer | April 07, 2014 | ...

Spring Boot 1.0.1.RELEASE is available in Maven Central and the repo.spring.io repository. This is a bug fix release, although a couple of new features have been added:

  • MessageSource caching can be specified in application.properties
  • ActiveMQ connection credentials can be externalized to application.properties
  • There is a new section on Security auto configuration in the reference guide

There was a security bug-fix for the Actuator, so anyone using Spring Security and the Actuator endpoints should upgrade. No backwards compatibility problems or changes to existing functionality are…

Project Sagan: zero-downtime deployments

Engineering | Chris Beams | April 04, 2014 | ...

Last week, I began this series by announcing that the Sagan reference app is now open source and showed how to get up and running with it on your own machine.

In this post, I want to walk through how we push Sagan into production at spring.io multiple times a day with zero downtime using blue-green deployments. You may have heard of this technique before; Martin Fowler gave it a write-up a few years ago, and there is a section on it in the highly-recommended book Continuous Delivery. In a nutshell, it goes like this:

  1. maintain two copies of your production environment ("blue" and "green");
  2. route all traffic to the the blue environment by mapping production URLs to it;
  3. deploy and test any changes to the application in the green environment;
  4. "flip the switch" by mapping URLs onto green and unmapping them from blue.

Spring Shell 1.1 RC1 Released

Releases | Mark Pollack | April 03, 2014 | ...

We are pleased to announce the release of Spring Shell 1.1 RC1. The Spring Shell is an interactive shell that can be easily extended with commands using a Spring based programming model.

This is a small bug fix release but includes an important improvement, the upgrade to use the JLine2 library and rewrite of the command parser. Check the release notes for more information. Special thanks to Eric Bottard and to those who submitted pull-requests.

Downloads | JavaDocs | Reference Documentation | Changelog

Get the Spring newsletter

Stay connected with the Spring newsletter

Subscribe

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all