The Spring Blog

Engineering
Releases
News and Events

This Week in Spring - January 20th, 2015

Welcome to another installment of This Week in Spring! This week’s roundup could’ve just as easily been titled, This Week in Spring Videos and Webinars, because we’ve got a lot of them!

  1. The good Dr. Dave Syer continues his series introducing Spring Security and Angular.js integration, this time looking at breaking apart the resource server from the authorization server. This post looks
  2. Our pal Nicoalas Frankel is back at it! Nicolas lives in both the Vaadin and the Spring communities. So, naturally, when Petter Holmström and I started the Vaadin4Spring project at the beginning of 2014, we weren’t surprised when Nicolas started making great contributions. His latest contribution introduces an elegant implementation of the MVP pattern for Vaadin and he’s written a very nice introduction to it - check it out!
  3. I’ll be speaking at the Oakland JUG on the 28th on building microservices with Spring Cloud and Cloud Foundry.
  4. Tadaya Tsuyukubo just announced the first 1.0.0 release of the Spring Social Slideshare project. I haven’t had a chance to play with it yet, but it looks like it could scratch a few itches I’ve got! Nice work!
  5. I hope you’ll join me next month for a webinar introducing the Spring Session project.
  6. Speaking of Vaadin and Spring, I’ll be co-presenting this week at the GWT.create conference. Our talk will look at controlling a Parrot AR Drone using a Vaadin-based HTML5 frontend and a Spring Boot-powered backend and drone client. Come join us, it’s sure to be fun!
  7. InfoQ did an interview with Spring Boot co-founder Phil Webb on all the new features in Spring Boot 1.2.1
  8. Alexandre Lourenco put together a post demonstrating how easy it is to get a REST API up and running with Spring Boot in this quick post on DZone
  9. Be sure to check out Spring XD’s Sabby Anandan in this webinar on Spring XD.next on February 17th
  10. The incomparable, amazing Andy Wilkinson will be talking about how to document REST APIs in a February 3rd webinar.
  11. I put together a post that introduces service registries like Consul and Eureka for more resilient service-to-service calls in a Spring Cloud-based system.
  12. Our pal Jakub Kubrynski has put together a wonderful post on including the NewRelic Java agent in a Spring Boot uber-jar
  13. In putting together the post on service discovery and registration with Spring Cloud, I stumbled upon Jason Wilder’s fantastic look at service registries and really liked it, even though it doesn’t have anything to do with Spring, per se.
  14. Check out this replay of Rossen Stoyanchev’s SpringOne2GX 2014 talk introducing Spring 4’s support for web applications
  15. Check out this SpringOne2gx 2014 talk from Matthew Adams (SCI Spike) and Michael Nitschinger (Couchbase) on using Spring Data Cassandra and Spring Data Couchbase in the enterprise
  16. Garrett Wampole’s SpringOne2GX 2014 talk on enterprise integration patterns as applied to real-time data processing is worth a watch!
  17. Check out our pal and the Spanish Spring I/O conference’s organizer Sergi Almar’s talk deep-diving into websockets
  18. Speaking of super awesome Spaniards, the Disid team just announced Spring Roo 1.3.1 RC2
  19. Spring Tool Suite and Groovy Tool Suite lead Martin Lippert just announced the latest releases, 3.6.3 SR1.
  20. My pal Luke Shannon did a fantastic webinar introducing Spring Data Gemfire, a world-class integration for a world-class data-grid.
  21. Spring Batch and Spring Batch Admin lead Michael Minella has just announced the latest release of both projects. The new Spring Batch revision includes support for JSR 352 custom infrastructures, polling for partitioned results, and more. The Spring Batch Admin revision integrates the latest and greatest in Spring Batch, including JSR 352 and Java configuration support. Check it out!
  22. Spring IO Platform lead Andy Wilkinson has announced Spring IO Platform 1.1.1, which includes the latest cuts of Spring AMQP, Boot, and Integration
  23. Spring Integration lead Gary Russell’s SpringOne2GX 2014 talk on Spring Integration’s new Java configuration support is not to be missed!
  24. Check out Spring framework lead Juergen Hoeller and Stephane Nicoll’s talk on caching and messaging improvements in Spring 4.1
  25. The sleepless Spring Security lead Rob Winch’s SpringOne2GX 2014 introduction talk on Spring Security is also available
  26. Spring framework lead Juergen Hoeller’s SpringOne2GX 2014 talk on Spring framework and Java 8 is not-to-be-missed primer for those looking at the next-gen Spring 4 and 4.1
  27. Another nice post on using SimpleJdbcInsert to handle JDBC data insertion
  28. Alvin Henrick put together a nice post on using Spring Boot and Docker together
  29. I found this interesting Q&A post on using Groovy with Spring Boot
  30. Alex Collins’ post on using Docker, Elastic Search, and Selenium to create a search-in-a-box is epic! Check it out!
  31. This Japanese-language post on using the new Spring Boot 1.2.1’s Jersey support looked pretty good (via Google Translate!)
  32. Want to stand up services via Docker? Check out our pal Chris Richardson’s post on standing up services via Docker! You could, for example, consume these services from another Docker-packaged Spring Boot application, or on Cloud Foundry.next (hitherto called “Diego”). http://plainoldobjects.com/2015/01/14/need-to-install-mongodb-rabbitmq-or-mysql-use-docker-to-simplify-dev-and-test/
  33. Are you following This Week in Cloud Foundry? Do! There’s so much good stuff there, as usual.
Read more...

Webinar: Spring XD - A Platform for data at scale and developer productivity

Speaker: Sabby Anandan

Worried about Big Data and the challenges inherent in making a real application? You don’t have to worry anymore! Spring XD provides a one-stop shop solution that spans traditional enterprise to Big Data use cases - both batch and streaming. It's important to choose the right tool for each use-case, which is why Spring XD integrates with technologies such as Spark, Reactor and RxJava to demonstrate the flexibility and the unified programming model to support complex data computation use-cases. In this webinar, we'll show you how to develop data-driven use cases much faster than other big data solutions on the out of the box XD runtime.

Read more...

Webinar: Introducing Spring Session

Speaker: Josh Long, Pivotal

Back in the era of the application server, HTTP Session replication was a common way to scale out user session data, as well as make it fault tolerant. In today's world of lightweight containers, PaaS, and virtualization, Spring Session offers a 100% server and/or container portable HTTP Session. See how Spring Session easily plugs in implementations like Redis, scales out across a cluster, handles multiple users' browser sessions, works with WebSocket, and allows header based authentication within REST apps. It's a perfect fit for working with user data, particularly in a highly distributed environment like the cloud, or on a Platform like Cloud Foundry.

Read more...

Webinar: Documenting RESTful APIs

Speaker: Andy Wilkinson, Pivotal

An API's documentation is a vital part of making it easy to understand and easy to use. RESTful APIs are no different. In this webinar we'll look at what should be included in your RESTful API's documentation and, just as importantly, what should be omitted. To illustrate this we'll look at some real-world examples of good and bad API documentation. We'll look at some of the problems and limitations of choosing a tool like Swagger to produce your API's documentation and conclude by looking at some alternatives that are better-suited to producing documentation that your users will love.

Read more...

The Resource Server: Angular JS and Spring Security Part III

In this article we continue our discussion of how to use Spring Security with Angular JS in a “single page application”. Here we start by breaking out the “greeting” resource that we are using as the dynamic content in our application into a separate server, first as an unprotected resource, and then protected by an opaque token. This is the third in a series of articles, and you can catch up on the basic building blocks of the application or build it from scratch by reading the first article, or you can just go straight to the source code in Github, which is in two parts: one where the resource is unprotected, and one where it is protected by a token.

Read more...

Microservice Registration and Discovery with Spring Cloud and Netflix's Eureka

The microservice style of architecture is not so much about building individual services so much as it is making the interactions between services reliable and failure-tolerant. While the focus on these interactions is new, the need for that focus is not. We’ve long known that services don’t operate in a vacuum. Even before cloud economics, we knew that - in a practical world - clients should be designed to be immune to service outages. The cloud makes it easy to think of capacity as ephemeral, fluid. The burden is on the client to manage this intrinsic complexity.

Read more...

SpringOne2GX 2014 Replay: Spring 4 Web Applications

Recorded at SpringOne2GX 2014.

Speaker: Rossen Stoyanchev

Slides: http://www.slideshare.net/SpringCentral/s2gx2014-spring4webapps

Web / JavaScript Track

The Web and Spring MVC continue to be one of the most active areas of the Spring Framework with each new release adding plenty of features and refinements requested by the community. Furthermore version 4 added a significant choice for web applications to build WebSocket-style architectures. This talk provides an overview of the areas in which the framework has evolved along with highlights of specific noteworthy features from the most recent releases.

Read more...

SpringOne2GX 2014 Replay: Cassandra, Couchbase and Spring Data in the Enterprise

Recorded at SpringOne2GX 2014.

Speakers: Matthew Adams (SCI Spike), Michael Nitschinger (Couchbase)

Data / Integration Track

Slides: http://www.slideshare.net/SpringCentral/cassandra-couchbase-andspringdataintheenterprise

Spring Data Cassandra brings Cassandra support to the Spring Data umbrella of projects, offering Spring Data's familiar Repository concepts & POJO persistence. This talk will focus first on POJO persistence over Cassandra, including automatic Cassandra schema generation and Spring context configuration using both XML & Java. Then, the talk will dig deeper into some of the lower-level features that Spring Data Cassandra is built upon (AKA "Spring CQL"), which make plain, old Cassandra development simpler & easier. Couchbase Server is well-known as one of the leaders in the NoSQL space, heavily used in enterprises and startups alike where low latency even at hundreds of thousands of operations per seconds matters. This talk will not only give a short introduction about the benefits of adopting Couchbase, but also show how to integrate it into your Java Enterprise landscape through its support for Spring Data. You will learn how to fully control your database schema from the application through entities and repositories, how to deploy new application versions or scale out your cluster without a single second of downtime and also how to integrate easily with elasticsearch.

Read more...

SpringOne2GX 2014 Replay: Applications of Enterprise Integration Patterns to Near-Real Time Radar Data Processing

Recorded at SpringOne2GX 2014.

Speaker: Garrett Wampole, MITRE

Data / Integration Track

Slides: http://www.slideshare.net/SpringCentral/applications-of-enterprise-integration-patterns-to-nearreal-time-radar-data-processing

Enterprise Integration Patterns, a set of software design concepts described in a book by Gregor Hohpe and Bobby Woolf and implemented in software by the Spring Integration project, are traditionally applied in the application domains such as business intelligence, supply chain management, and customer relationship management. The topic of this presentation is to describe an experimental methodology of applying Enterprise Integration Patterns to the near-real time processing of surveillance radar data and the engineering trade-offs encountered in the areas of development, deployment, operation, and analysis of ground-based surveillance radar systems with a focus on the Modular Experimental Radar program developed by MITRE for its sponsors.

Read more...

SpringOne2GX 2014 Replay: Deep dive into Spring WebSockets

Recorded at SpringOne2GX 2014.

Speaker: Sergi Almar

Slides: http://www.slideshare.net/SpringCentral/deep-dive-intospringwebsockets-sergialmarspringone2gx2014

Web / JavaScript Track

WebSocket support has been part of Spring since 4.0. In this session we'll review the architecture behind it and we'll try to show how to build highly scalable websocket based applications. We will also cover the new features in Spring 4.1, the new Spring Security 4 support for WebSockets and the different testing approaches.

Read more...