This Week in Spring - November 25th, 2014

Engineering | Josh Long | November 25, 2014 | ...

Egads! Can you believe it's already almost the end of the year? Time has been screaming fast! It's the week of Thanksgiving for those of us in the United States. This is a wonderful time of year to sit back, find a nice Spring IO guide or blog to read, and then build something awesome.. oh, and it's an ideal time to spend in the company of friends and family and to reflect on those and that for which we're grateful. I'm sure I speak for the Spring team and Pivotal at large when I say that we're grateful for you, our inspiring community, users and customers.

But if you do want something to read…

Spring Cloud 1.0.0.M3 Available Now

Releases | Dave Syer | November 25, 2014 | ...

Spring Cloud 1.0.0.M3 is available now in the repo.spring.io repository. The following projects all had a 1.0.0.M3 release:

  • Spring Cloud Config: centralized key-value (or YAML) configuration management. Now supports the config server being fully embedded in another application.

  • Spring Cloud Netflix. Also has better support for embeddability of the server components. Now also properly records load balancer statistics in Ribbon-enabled Spring RestTemplate.

  • Spring Cloud for Amazon Web Services. Has new Spring Boot integration points, externalizing configuration for AWS metadata.

  • Spring Cloud Security: super simple OAuth2 in a declarative style.

  • Spring Cloud Bus: broadcasts framework-level events to Spring Cloud components. Big news here is that we now have a RabbitMQ-based aggregator for Hystrix metrics (based on Turbine 2), so you don't have to rely on having direct HTTP access to all service instances.

Spring Integration Java DSL: Line by line tutorial

Engineering | Artem Bilan | November 25, 2014 | ...

Dear Spring Community!

Just after the Spring Integration Java DSL 1.0 GA release announcement I want to introduce the Spring Integration Java DSL to you as a line by line tutorial based on the classic Cafe Demo integration sample. We describe here Spring Boot support, Spring Framework Java and Annotation configuration, the IntegrationFlow feature and pay tribute to Java 8 Lambda support which was an inspiration for the DSL style. Of course, it is all backed by the Spring Integration Core project.

For those, who are not interested in Java 8 yet, we provide similar tutorial without Lambdas: Spring Integration Java DSL (pre Java 8): Line by line tutorial

Spring Integration Java DSL 1.0 GA Released

Releases | Artem Bilan | November 24, 2014 | ...

Dear Spring community,

As we promised in the Release Candidate blog post, we are pleased to announce that the Spring Integration Java DSL 1.0 GA is now available. As usual, use the Release Repository with Maven or Gradle, or download a distribution archive, to give it a spin.

See the project home page for more information.

First of all, we are glad to share with you that on Nov 12, 2014, DZone research recognized Spring Integration as the leader in the ESB / Integration framework space, leading with 42% marketshare, in a publication of their recent survey results. And the report is…

SpringOne2GX 2014 Replay: Running Your Spring Apps in the Cloud

News | Pieter Humphrey | November 24, 2014 | ...

Recorded at SpringOne2GX 2014.

Speaker: Cornelia Davis

Slides: http://www.slideshare.net/SpringCentral/running-your-spring-apps-in-the-cloud

The Spring Trader application was debuted at SpringOne 2GX in 2012 and presented an application that demonstrates a multitude of Pivotal Application Fabric components working together – tcServer, RabbitMQ, SQLFire and Gemfire. In this session we will take that application and make (a few) modifications (mostly to config) to get it running on the same components in the cloud, specifically on the Cloud Foundry PaaS. We’ll show you how to use the Spring Cloud project to configure the deployment, how to leverage a cloud services catalog, how to implement a cross-site scripting solution (and why), how to do session state caching and we’ll discuss (the dangers of) auto reconfiguration. If you bring a laptop you can have your own instance of the app running by the end of the session.

!{iframe width="560" height="315" src="//www.youtube.com/embed/nuiNvI5HYkU" frameborder="0" allowfullscreen}{/iframe}

SpringOne2GX 2014 Replay: Developing Microservices for PaaS with Spring and Cloud Foundry

News | Pieter Humphrey | November 24, 2014 | ...

Recorded at SpringOne2GX 2014.

Speaker: Matt Stine

Slides: http://www.slideshare.net/SpringCentral/developing-microservices-for-paas-with-spring-and-cloud-foundry

Marc Andressen has famously said "Software is eating the world." What does that mean? We take it to mean that multiple industries with historically entrenched leaders are being disrupted by businesses built around a software core. These software factories are characterized by: tight feedback loops rapid iteration horizontal scaling mobile-first UX continuous delivery These factors have contributed to drive a change in how we approach infrastructure, which has taken the lead in adapting to meet these needs with the move to the cloud, and Platform as a Service (PaaS) offerings like Cloud Foundry have raised the level of abstraction to a focus on an ecosystem of applications and services. However, most applications are still developed as if we're living in the previous generation of both business and infrastructure: the monolithic application. Microservices - small, loosely coupled applications that follow the Unix philosophy of ""doing one thing well"" - represent the application development side of enabling rapid, iterative development, horizontal scale, polyglot clients, and continuous delivery. They also enable us to scale application development and eliminate long term commitments to a single technology stack. While microservices are simple, they are certainly not easy. It's recently been said that "microservices are not a free lunch." Interestingly enough, if you look at the concerns typically expressed about microservices, you'll find that they are exactly the challenges that a PaaS is intended to address. So while microservices do not necessarily imply cloud (and vice versa), there is in fact a symbiotic relationship between the two, with each approach somehow compensating for the limitations of the other, much like the practices of eXtreme Programming do the same. This session will describe architectural patterns for developing microservices:

  • Service Decomposition
  • API Gateways
  • Stateless / Shared-Nothing
  • Apps Configuration and Backing Service
  • Consumption
  • Fault Tolerance

Along the way we'll see how to leverage technologies such as Spring Boot and Reactor to develop microservices targeted at Cloud Foundry.

!{iframe width="560" height="315" src="//www.youtube.com/embed/iMvCOEsSuAc" frameborder="0" allowfullscreen}{/iframe}

SpringOne2GX 2014 Replay: Creating REST-ful, Hypermedia-based Micro-services with Spring Boot

News | Pieter Humphrey | November 24, 2014 | ...

Recorded at SpringOne2GX 2014.

Speaker: Ben Hale @nebhale

Slides: http://www.slideshare.net/SpringCentral/creating-restful-hypermediabased-microservices-with-spring-boot

As data-driven applications become ubiquitous, the services that provide the data are proliferating. As teams become responsible for more and more of these services, it becomes critical that they be designed and implemented in a way that is as lightweight as possible. This session will cover how to design micro-services as RESTful APIs and implement them with minimal code using Spring Boot. It will focus on API design using REST and HATEOAS, with live coding progressing from a tweet-length implementation all the way to a full-fledged app running in the cloud.

Along the way we'll see how to leverage technologies such as Spring Boot and Reactor to develop microservices targeted at Cloud Foundry.

!{iframe width="560" height="315" src="//www.youtube.com/embed/zbeMDM-zDNI" frameborder="0" allowfullscreen}{/iframe}

Webinar Replay: Spring Boot and JRebel 6.0

News | Pieter Humphrey | November 24, 2014 | ...

Speakers: Josh Long, Pivotal + Adam Koblentz - ZeroTurnaround

Slides: https://speakerdeck.com/joshlong/bootiful-jrebel

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! Spring Boot gives you a huge leg up over normal starter projects, now let's give you another boost by adding JRebel. With JRebel, the average Java developer saves over 1 work-month per year by using JRebel to skip rebuild, restart, and redeploys of their application. JRebel 6 launches on November 4, 2014 and includes complete Spring Boot integration. Join Spring's Josh Long and ZeroTurnaround's Adam Koblentz and learn how to combine Boot with JRebel and get more done, in less time with less configuration.

Learn more about Spring Boot: http://projects.spring.io/spring-boot

Learn more about JRebel: http://zeroturnaround.com/software/jrebel/display/

14 day free JRebel trial download: https://zeroturnaround.com/software/jrebel/trial/

 

!{iframe width="420" height="315" src="//www.youtube.com/embed/N5FHiONGOsg" frameborder="0" allowfullscreen}{/iframe}

"Bootiful" Java EE Support in Spring Boot 1.2

Engineering | Josh Long | November 23, 2014 | ...

In this blog, I want to look at - and demonstrate - some of the many new features in Spring Boot 1.2 that make the lives of those coming from, or otherwise building on, Java EE easier.

It's worth mentioning that a lot of this support has been possible with Spring before, of course, but now with Spring Boot 1.2, it's just so darned easy!

First, here's an example program with notes after.


package demo;

import org.glassfish.jersey.jackson.JacksonFeature;
import org.glassfish.jersey.server.ResourceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot…

Spring Boot 1.2.0.RC2 Available Now

Releases | Phil Webb | November 21, 2014 | ...

I am pleased to announce that the second release candidate for Spring Boot 1.2.0 is available now in the Spring milestone repository. This is mainly a bug fix release, although we did manage to sneak in a fantastic community contribution which adds support for Undertow as an embedded Servlet container.

For a complete list of changes, and for upgrade instructions, see the Spring Boot 1.2 Release Notes on the WIKI. The reference documentation has also been updated to cover new features.

As usual, please report any problems using the project Issue tracker.

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