Webinar Replay: Spring Data Repositories - Best Practices

News | Pieter Humphrey | March 05, 2014 | ...

Speakers: Oliver Gierke and Thomas Darimont

Slides: https://speakerdeck.com/olivergierke/spring-data-repositories-best-practices

The repository abstraction layer is one of the core pieces of the Spring Data projects. It provides a consistent, interface-based programming model to allow implementing data access layers easily for relational and NoSQL databases. We will have a look at the lessons learned from the application of it in various customer projects and summarize best practices for you to apply in your projects. The session will also discuss advanced features like the Querydsl integration, the integration of custom implementation code as well as hooks into Spring MVC and Spring HATEOAS.

Learn more about Spring Data at: http://projects.spring.io/spring-data

Learn more about Spring HATEOAS at: http://projects.spring.io/spring-hateoas

Learn more about Spring MVC at: http://projects.spring.io/spring-framework

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

This Week in Spring - March 4th, 2014

Engineering | Josh Long | March 05, 2014 | ...

Welcome to another installment of This Week in Spring.

As usual, we've got a lot to cover so let's get to it!

  1. Spring Batch and Boot co-founder Dr. Dave Syer has announced that Spring Boot RC4 is now available. Check out the latest cut for all the goodies!
  2. There is a new guide that details how to use Spring Data REST
  3. Spring Data ninja Christoph Strobl has announced that Spring Data Redis 1.2 is now available.
  4. Don't miss Mattias Arthursson on a webinar March 18th, presenting Spring LDAP 2.0.0.
  5. Join Juergen Hoeller and the Spring Team for a webinar on Java 8 and Spring Framework 4.0 on March 25!
  6. David Turanski has put together a nice post on how to use Groovy for bean configuration
  7. Alvaro Videla's and Jan Machacek's talk from SpringOne2GX 2013, RabbitMQ is the new King, is now available online
  8. Gary Russell's SpringOne2GX 2013 talk introducing Spring Integration's internals is now online
  9. Pance Cavkovski has a nice post demonstrating the web socket support from the JavaWebSocket project, Java EE 7 and Spring 4.
  10. Norris Shelton Jr. has a nice post on accessing the Spring Security principal from the currently installed Authentication object using a custom annotation
  11. Quinten Krijger has a nice post on how to manage session concurrency with Spring Security and Spring MVC
  12. Tomasz Nurkiewicz writes about how to build a custom Spring XML namespace. He makes a great point at the beginning, though: Spring doesn't require XML!
  13. The Not Just Another Blog blog looks at how to override the Spring Security filter chain
  14. Thys Michels has a short-and-sweet post on how to configure a Spring application using Java configuration to consume an ElasticSearch service on Heroku.

Spring Data Redis 1.2 GA Released

Releases | Christoph Strobl | March 04, 2014 | ...

Spring Data Redis 1.2.0 has been released and is now available from Maven Central. This release sums up the fixes and enhancements from 1.1.1 and RC1 plus an updated documentation. The release has been tested against Redis 2.4.6, 2.6.17, 2.8.6 as well as the recent 3.0-beta1 using the latest Spring framework 3.2 and 4.0 versions.

Reference Documentation | Changes | JavaDoc

Up next SD Redis will join the Spring Data release train Dijkstra. We are looking forward to your feedback on Twitter or in the issue tracker.

For more information about Spring Data Redis please see the home page.

SpringOne2GX 2013 Replay: Spring Integration Internals

News | Pieter Humphrey | March 04, 2014 | ...

Recorded SpringOne2GX 2013 in Santa Clara, CA

Speaker: Gary Russell A comprehensive review of message routing within a flow - including

  • exactly how and when replyChannel and errorChannel headers are used
  • how and when these headers apply in an error flow
  • differences between synchronous and asynchronous processing (with task executors and pollers)
  • Use of SpEL (for messagemethod mapping as well as certain "dynamic" config attributes)
  • Type conversion (via SpEL, datatype channels, etc) Implicitly created channels
  • How chains work How messages are mapped to methods when a message arrives at a component
  • How gateway methods are mapped to messages (and a first look at some enhancements we are considering)
  • Options for…

SpringOne2GX 2013 Replay: RabbitMQ is the new King

News | Pieter Humphrey | March 04, 2014 | ...

Recorded at SpringOne2GX 2013 in Santa Clara, CA.

Speakers: Alvaro Videla, Jan Machacek

Jan will show how to use RabbitMQ to connect components on different platforms. After a few introductory slides explaining the main concepts, the rest of the talk will be live code. The coding will begin by showing Spring Integration code to connect to RabbitMQ to send and receive messages--think byte[] values back and forth to start with. Jan will then show the real power of RabbitMQ by replacing the RPC server component by native code in C++: we will write image processing component. To make matters even better--faster--we will then use CUDA to perform the image processing. Come to Jan's talk and demo if you want to find out how to use RabbitMQ in the core of your application, especially if your application needs to tie together code on completely different platforms and if it performs heavy number crunching or image processing. You do not need to have deep knowledge of Spring Integration, AMQP or OpenCV, ...; all that you will need is your inner geek.

Learn more about RabbitMQ at

http://www.gopivotal.com/products/pivotal-rabbitmq

and

http://www.rabbitmq.com

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

Spring Boot 1.0.0.RC4 Available Now

Releases | Dave Syer | March 04, 2014 | ...

Spring Boot 1.0.0 (RC4) has been released and is available in the repo.spring.io repository. There are some bug fixes from RC3 and a load of updated third-party dependencies. New features include

  • Support for Spring Loaded reloading of classes during development in Maven and Gradle builds.
  • A starter pom for spring-data-rest (and a sample).
  • Lots of new documentation (all in the source code but published as usual at http://projects.spring.io/spring-boot.
  • Automatic main class detection for "gradle run".
  • Support for relaunching and incrementing Spring Batch jobs on startup.

If there are no more…

Groovy Bean Configuration in Spring Framework 4

Engineering | David Turanski | March 03, 2014 | ...

This post is intended to introduce the Groovy Bean Builder to Java developers as a powerful alternative or supplement to Java @Configuration and XML configuration. The Spring Framework release 4.0 includes a port of the Grails Bean Builder to the core Spring Framework, providing a Groovy DSL for configuring Spring applications. Groovy and Grails developers are no doubt familiar with configuring Spring applications this way and I expect the rest of you are already thinking "How cool is that?"

Don't worry if you're not a Groovy expert. Just as many Java programmers use another popular Groovy DSL, Gradle, to build applications, you only need to know some basic syntax to get started. Sample code is available on github

Getting Started with Spring Data REST

Engineering | Greg L. Turnquist | February 26, 2014 | ...

Hot on the heels of Spring Data's Codd GA release, there is a new Getting Started guide for Spring Data REST, Accessing Data with REST. It shows you how to create up an application with a JPA backend and a RESTful, hypermedia-driven front end.

Spring Data REST does all the heavy lifting of building a powerful RESTful front end as well as writing the JPA queries for the back end. To top it off, the guide leverages Spring Boot so you are using the latest-and-greatest from the Spring team.

Cheers!

This Week in Spring - February 25th, 2014

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

Welcome back to another installment of This Week in Spring.

Yesterday I was in Atlanta, GA for the amazing DevNexus conference talking to developers about the latest and greatest in the wide world of Spring, and about REST API development with Spring. Today I am in Montreal, Canada, for the ConFoo conference. I'll speak to developers this week about Spring's rich NoSQL and big-data support and building REST APIs with Spring.

As usual, we've got a lot to cover, so let's get into it!

  1. Spring Batch lead Michael Minella has announced that Spring Batch 3.0 M3 is now available. My favorite new feature? It implements all of the required pieces for JSR 352, the Batch JSR! Congratulations Michael and team, this is a huge milestone!
  2. Spring Mobile lead Roy Clarkson has announced that Spring Mobile 1.1.1 is now available.
  3. Spring Security lead Rob Winch announced that Spring Security 3.2.1, and 3.1.5, are now available
  4. Rob also announced that Spring LDAP 2.0.1 is now available.
  5. Christoph Strobl has announced that Spring Data Redis 1.2.0 is now available, also!
  6. Join Juergen Hoeller and the Spring Team to learn about Java 8 and Spring Framework 4.0 on March 25.
  7. Don't miss Mattias Arthursson on March 18th, presenting Spring LDAP 2.0.0.
  8. Tomcat fans should check out the webinar replay from Apache Committer Stuart Williams and Daniel Mikusa: Introduction to Apache Tomcat 8.
  9. The replay of the Spring Data Community Lightning Talks from SpringOne2GX 2013 are now up
  10. The replay of the SpringOne2GX 2013 talk, _SpringOne2GX 2013 Replay: Researching Cancer In the Cloud Using Spring, Neo4J, Mongo and Redis _
  11. Spring Data lead Oliver Gierke has announced that Spring Data Codd is now available and GA! Check out the latest and greatest bits!
  12. The latest cut of the Axon CQRS framework, version 2.1, is now available.
  13. Pivotal CEO Paul Maritz has penned a nice post on the formation of a foundation around Cloud Foundry
  14. El Reg also has a nice post on the recent formation of the Cloud Foundry foundation in a post titled, Cloud Foundry laps up attention in EMC, IBM, HP, Rackspace, SAP, VMware love-in.
  15. The Zoltan blog has a nice post on using two-factor authentication with Spring Security
  16. Biju Kunjummen on the the Java Code Geek's blog has put together a nice nice post on his first steps with Spring Boot and Spring Integration.
  17. Xavier Padró' has published his followup post to last week's post introducing Spring and Thymeleaf. The new post looks at how to build a form, and how to use Ajax with Thymeleaf.
  18. Speaking of Spring Boot, the OpenCredo blog has a nice post on their first steps with Spring Boot, as well! Check it out.
  19. JavaLobby has a nice post on using custom ViewResolvers with Spring MVC.

SpringOne2GX 2013 Replay: Spring Data Community Lightning Talks

News | Pieter Humphrey | February 25, 2014 | ...

Recorded at SpringOne2GX 2013 in Santa Clara, CA

Speakers: Peter Bell (MongoDB Master), Costin Leau (Elasticsearch), Christoph Strobl (Solr) and Michael Nitschinger (Couchbase)

Spring Data has started as an umbrella project consisting of many individual modules - per supported data store. While some of these data store modules - like the JPA and MongoDB ones - are maintained by Pivotal engineers a lot of community implementations have popped up lately. They build on the foundations of the Spring Data Core module and expose the Spring Data programming model for others stores. The session will feature maintainers and contributors of the community modules for Solr (Christoph Strobl), Elasticsearch (Costin Leau), Couchbase (Michael Nitschinger) and MongoDB (Peter Bell), who will talk about the latest and greatest features of the upcoming releases and give an impression of how they used the APIs of Spring Data Core to build the module. Spring Data has stared as an umbrella project consisting of many individual modules - per supported data store. While some of these data store modules - like the JPA and MongoDB ones - are maintained by Pivotal engineers a lot of community implementations have popped up lately. They build on the foundations of the Spring Data Core module and expose the Spring Data programming model for others stores. The session will feature maintainers and contributors of the community modules for Solr (Christoph Strobl), Elasticsearch (Costin Leau), Couchbase (Michael Nitschinger) and MongoDB (Peter Bell), who will talk about the latest and greatest features of the upcoming releases and give an impression of how they used the APIs of Spring Data Core to build the module.

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

Get the Spring newsletter

Thank you!

Get ahead

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

Learn more

Get support

Spring Runtime 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