This Week in Spring - Feb 19th, 2013

Engineering | Josh Long | February 19, 2013 | ...

Welcome back to another installment of This Week in Spring! This week I'm in Atlanta, GA with a few other SpringSource colleagues talking to developers at the DevNexus Java conference and - tomorrow - speaking at the Atlanta Spring User Group. This show is bigger and better than ever this year! I love the energy and community here.

If you're in Atlanta, GA, drop by the eHire labs (see the link above for the address) tomorrow night for the Spring User Group and we'll talk about REST, Spring MVC, Spring for Android, Spring Mobile, and more! I look forward to seeing you.

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

  1. The Spring Data release train "Arora" is now avialable, a synchronized, tested release of all Spring Data sub projects - check it out now!
  2. Craig Walls has announced that Spring Social 1.1.0.M2 has been released ! The new release incorporates tighter integration with Spring Security and a slew of new features.
  3. Jeremy Grelle has announced When.js 1.8.0 which is cujojs's lightweight Promises/A implementation.
  4. <LI>  Gary Russell <a href  = "">has announced Spring Integration 3.0.0 M1</a>. 
     There are no major new features in this first milestone, it is mainly refactoring, removing deprecations, etc. Browse the documentation 'what's new' and the release notes for more information.
  5. Register now to talk with Sam Brannan and Rossen Stoyanchev on Feb 21st in the Webinar: Testing Web Applications with Spring 3.2
  6. New replays from SpringOne2012 - talks from the Data and Integration track talks starting to hit YouTube. Check out Gary Russell's Monitoring and Managing Spring Integration Part 2, and Hadoop / Big Data enthusiasts shouldn't miss Costin's talk How to build Big Data Pipelines for Hadoop using OSS.
  7. As a bonus session this week, we've also released Spring Data REST: Easily export JPA entities directly to the web.
  8. Krishna's blog has a nice post on using CAS (single signon using Jasig) with Spring Security.
  9. Sergei Sizov has put together a nice post on using Spring Security and HTTP Basic authentication.
  10. The Lucky Ryan blog has a very nice post introducing HDIV - which can be used to prevent cross site request forgery (CSRF), remove the ability to alter non-editable data (hidden fields, params…) and even has options to limit characters globally across form fields - and explaining how to use HDIV with Spring MVC.
  11. Your remoting layer (the layer that's exposed over the network) might simply surface the domain model objects from your services layer. Often, however, the object sent across the wire is a slightly different version of the data used by the service. Perhaps fields are omitted because they contain too much data. Perhaps extra fields are added to communicate metadata about the service itself. Perhaps you simply want to flatten two different types into a single object for ease-of-transport. Whatever the reason, the common pattern (or anti-pattern) to handling this is a DTO (data transfer object). We had these before with EJBs and DCOM and CORBA. Now we have them with REST. If you find you have to have DTOs, the jtransfo library introduced in this post seems like it might be helpful in reducing the tedious adapters from DTO to domain object. The post explains how to use JTransfo to automatically handle adapting domain objects to DTOs.
  12. The blog has a nice introduction to Spring Batch's RetryTemplate. This is a very powerful component of Spring Batch that doesn't get enough love, so I am glad to see this post!
  13. The Learn and Shine blog has a nice post introducing how to use Spring MVC to render XSLT views.
  14. The Java Ninja Chronicles By Norris Shelton, Jr blog has a very concise post on how he took the first steps in using Spring's Java configuration style to make short work of loading properties from an exotic source.

SpringOne 2GX 2012 Replays: Monitoring and Managing Spring Integration, Building Big Data Pipelines with Spring Hadoop

News | Pieter Humphrey | February 19, 2013 | ...

In this presentation we will discuss the options for managing and monitoring applications that use Spring Integration. It will provide a comprehensive overview of the extensive support for JMX provided by Spring Integration, both in terms of providing access to Spring Integration internals, as well as creating a JMX client to interact with local and remote MBeanServers.

In addition, we will show how to use the Spring Integration plugin for Spring Insight to drill down into Spring Integration flow processing to examine application performance.

Topics include:

  • Using the Integration MBean Exporter, and the MBeans it registers, for analyzing Messaging Endpoints and Channels.
  • Exporting the Integration MBean Exporter itself as an MBean, to gain access to it's attributes and operations.
  • Using the Control Bus to start and stop endpoints.
  • Using the Spring Integration plugin for Spring Insight to get a real-time view of your application and its performance.
  • Enabling and using Message History
  • Using the orderly shutdown mechanism available in Spring Integration 2.2.
  • Using JMX endpoints (with local and remote MBeanServers) to monitor attributes. invoke operations, publish notifications, and receive notifications.

About the speaker

Gary Russell

Gary Russell

Gary has been in software engineering, concentrating on Enterprise Integration, for over 30 years on various platforms, and in the Java space since the late '90s.

He has been developing with the Spring Framework since 2004 and joined SpringSource/VMware in 2009 in a consulting role. From 2009 until the end of 2011 he taught Core Spring and Enterprise Integration with Spring to several hundred developers, as well as providing Enterprise Integration consulting services with Spring Integration, Spring Batch and Core Spring.

He has been a committer on the Spring Integration project for nearly 3 years and became a full time member of the engineering team in January 2012.

More About Gary »

How to build Big Data Pipelines for Hadoop using OSS

Hadoop is not an island. To deliver a complete Big Data solution, a data pipeline needs to be developed that incorporates and orchestrates many diverse technologies. A Hadoop focused data pipeline not only needs to coordinate the running of multiple Hadoop jobs (MapReduce, Hive, Pig or Cascading), but also encompass real-time data acquisition and the analysis of reduced data sets extracted into relational/NoSQL databases or dedicated analytical engines.

This session looks at the architecture of Big Data pipelines, the challenges ahead and how to build manageable and robust solutions using Open Source software such as Apache Hadoop, Hive, Pig, Spring Hadoop, Batch and Integration.

About the speaker

Costin Leau

Costin Leau

Costin Leau is an engineer within the SpringSource. His interests include data access and aspect oriented programming. With significant development experience, Costin has worked on various Spring Framework features (cache abstraction, JPA, java config), led the Spring Dynamic Modules (Spring OSGi probject), Spring GemFire and the Spring-inspired, OSGi 4.2 Blueprint Service RI. Currently Costin is working in the NOSQL and Big Data area, leading the Spring integration with Hadoop and Redis.

More About Costin »

Spring Integration 3.0.0 Milestone 1 is Released!

Releases | Gary Russell | February 15, 2013 | ...

We are pleased to announce that Spring Integration 3.0.0.M1 is now available. There are no major new features in this first milestone, it is mainly refactoring, removing deprecations, etc. Browse the documentation 'what's new' and the release notes for more information.

We are happy to see more community contributors and are continuing our efforts to promote that growing trend, both in the core project and the extensions respository.

More information is available on the project's home page.

When.js 1.8.0 Released

Releases | Jeremy Grelle | February 14, 2013 | ...

Dear Spring Community,

We are pleased to announce the release of when.js 1.8.0.

When.js is cujojs’s lightweight Promises/A and when() implementation, derived from the async core of wire.js, cujojs’s IOC Container. It also provides several other useful Promise-related concepts, such as joining multiple promises, mapping and reducing collections of promises, and timed promises.

Among other things, this release includes an extensive set of adapters for working with existing callback-based APIs, including node-style async APIs, allowing you to effectively convert them into promise-aware functions. In addition, most of the new features in this release are community contributions, which is awesome. Keep it coming!

Some specific highlights include:

  • Adapters for promisifying existing callback-based code.
  • Mechanisms for generating and processing unbounded/infinite lists
  • Promise-based periodic polling utility.

Check out the changelog for more info and direct links to docs for all the new goodies.

If you're still wondering what this cujojs thing is all about, be sure to check out Brian Cavalier and John Hann's "IOC + JavaScript" talk from SpringOne 2012.

Spring Social 1.1.0.M2 Released

Releases | Craig Walls | February 13, 2013 | ...

Dear Spring Community,

We are pleased to announce the second milestone release of Spring Social 1.1.0!

Spring Social is an extension of the Spring Framework that enables you to connect your Java applications to Software-as-a-Service (SaaS) providers such as Facebook and Twitter.

Along with Spring Social 1.1.0, we are also releasing second milestones for Spring Social Facebook 1.1.0 and Spring Social Twitter 1.1.0.

The main theme of milestone 2 is tighter integration with Spring Security, including a new SocialAuthenticationFilter to achieve sign-in-with-provider capability directly within the Spring Security filter chain.

In addition to Spring Security integration, these milestone releases also include:

  • Support for non-standard parameters in the OAuth authorization flows.
  • Interceptor capability in ProviderSignInController's flow to allow for custom behavior in authentication flow.
  • Sign-in capability for Facebook Canvas applications, including a new spring-social-canvas sample to showcase the use of CanvasSignInController.
  • Support for paging in the Facebook API binding with "since" and "until" parameters.
  • Advanced search capabilities in the Twitter API binding.
  • Support for ticker symbol pseudo-entity in Twitter statuses.

These milestone releases also contain several smaller improvements and bug fixes.

To get the software, download the release distribution (Core | Facebook | Twitter).

As always, the Spring Social community has been awesome at providing feedback and contributing pull requests to make this release possible. Significant contributions in this release came from Stefan Fussenegger, who contributed much of the Spring Security integration code and Yuan Ji who provided feedback and refactoring help in that same set of code. Also, it seems that the Spring Social community has taken a keen interest in using Spring Social to build Facebook Canvas apps, which led to the creation of CanvasSignInController.

If you'd like to follow along or contribute, we encourage you to participate in the Spring Social Forum, report bugs or suggest enhancements, or to fork the code and contribute back via pull requests.

Spring Data release train Arora available

Releases | Oliver Drotbohm | February 13, 2013 | ...

I am pleased to announce the first themed release of the Spring Data release train named Arora. Going forward we'll use names of famous computer scientists to label a set of Spring Data modules to make it easier to identify modules being compatible to each other. This mostly refers to the Spring Data Commons version they refer to.

The Arora release contains the following modules:

The major new features of the release are:

  • Annotation based auditing support through @CreatedDate, @CreatedBy etc. (except Spring Data Gemfire)
  • Exposure of Spring Data Mapping information for all modules (to be used by Spring Data REST)
  • Spring Data Mapping information being read from accessor methods as well
  • Automatic registration of JodaTime Converters if present on classpath (Spring Data MongoDB)
  • Major improvements to mapping subsystem and query execution for Spring Data MongoDB
  • Extended querying options on query methods (Spring Data Solr)
  • Annotation support for Gemfire functions (Spring Data Gemfire)
  • A tag has been added to the gfe-data XML namespace for automatic basic client connection and region configuration. (Spring Data Gemfire)
  • Support for Lettuce Redis driver (raising the count of supported driver to 5, Spring Data Redis)
  • Dynamic removal of listener for running MesageListenerContainer (Spring Data Redis)
  • Refined Maven build to ease release process

Alongside the new major versions of the Spring Data Modules we've also published bugfix releases for Spring Data Commons (1.4.1), Spring Data JPA (1.2.1) and Spring Data MongoDB (1.1.2).

Note: The artifactId of the Spring Data Commons module has changed to from spring-data-commons-core to spring-data-commons. So if you're explicitly referring to it from your project, make sure you update the reference accordingly.

The binaries will be present in Maven central shortly if not already in place.

Spring Social Twitter 1.0.3 Released

Releases | Craig Walls | February 13, 2013 | ...

Dear Spring Community,

I'm happy to announce the release of Spring Social Twitter 1.0.3.RELEASE.

Spring Social is an extension of the Spring Framework that enables you to connect your Java applications to Software-as-a-Service (SaaS) providers such as Facebook and Twitter.

This is an API-update release, bringing Spring Social Twitter's API binding up to date with version 1.1 of Twitter's API. Twitter has deprecated the 1.0 version of their API and will shut it down next month. It is recommended that if you are using Spring Social Twitter 1.0.2 or lower that you immediately upgrade to Spring Social Twitter 1.0.3 to avoid any disruption in functionality.

To get the software, download the release distribution.

It is anticipated that this will be the last release of Spring Social Twitter in the 1.0.x series. Work on Spring Social 1.1.0 is well underway and is now at milestone 2 for the 1.1.0 release.

This Week in Spring - Feb 12th, 2013

Engineering | Josh Long | February 12, 2013 | ...

Welcome back to another installment of This Week in Spring ! As usual, we've got a lot to cover, so let's get to it!

  1. Dave Syer is taking his SpringOne2GX talk to an online audience on Feb 14th, 2013 Webinar - When and Why Would I Use OAuth2?
  2. Dream team Sam Brannen (Swiftmind) & Rossen Stoyanchev (SpringSource) join forces on Feb 21st, 2013 for a Webinar: Testing Web Applications with Spring 3.2
  3. New SpringOne2GX 2012 talks released to YouTube in HD! Ten Great Reasons to Virtualize Your Java Apps, and What's New in CloudFoundry.
  4. Our pal Boris Lam is back, this time with two posts on how to use Spring Data MongoDB and JSF together.
  5. The PluralSight blog has a video introduction to Spring MVC interceptors. This video is an excerpt from a full-fledged video course.
    <LI>  Cool demonstration: <A href="">Spring Insight plugins for Spring Integration and RabbitMQ</a>. 
  6. The syntx blog has a nice post on how to add HTTP Basic authentication using Spring Security to Spring MVC-secured resources.
  7. Krishna's Blog has a nice post introducing unit-testing the Spring Security layer with the InMemoryDaoImpl.
  8. <LI>  You know, I was looking for something like this just the other day!  <EM>Mark's Blog </EM> has a nice post on the <A href=""> workflow of the various objects in servicing an incoming HTTP request in Spring MVC</a>.  Is this stuff you could easily figure out by sticking a breakpoint in a controller and just looking at the call stack…

SpringOne 2GX 2012 Replays: Ten Great Reasons to Virtualize Java Applications, What's New in CloudFoundry

News | Pieter Humphrey | February 12, 2013 | ...

Ten Great Reasons to Virtualize Your Java Apps

Customer interest in virtualizing Java workloads has been growing exponentially year on year. For the last few years, the focus has been largely around looking for best practice guidance to mitigate concerns around virtualizing Java workloads, particularly in the area of performance. Since joining VMware, SpringSource has been investing in providing first class support for the Java runtime on vSphere with products such as EM4J. Combined with the industry-leading capabilities of the vSphere platform and the growing product portfolio around the Java ecosystem, there are many great reasons to virtualize Java.

So rather than continuing to ask the question, is it OK to virtualize Java, this session boldly aims to suggest that you would be crazy not to!

About Benjamin Corrie

Benjamin Corrie

Ben Corrie has been working on Java since 1998, where he began at IBM testing JDK 1.1.4. He progressed to working on the internals of IBM's Java Virtual Machine where he lead a project to develop industry-leading memory management technology for the JVM. He joined SpringSource as a consultant in 2008 and moved to California a year later to lead an effort to improve Java performance on vSphere. As the tech lead on the recently announced EM4J project, he is successfully helping to make vSphere the best place to run Java.

More About Benjamin »

What's New in Cloud Foundry

Come to this session to get an in-depth view of the latest and greatest in Cloud Foundry. It's easier than ever before to build and deploy your distributed polyglot applications. You will see some exciting new options, including new Java and Node runtimes and support for background workers and container-less web apps. These features allow you to create distributed apps comprised of many smaller, focused apps each written in the framework that fits its purpose best. We will also explore the latest in tooling, including new features in the STS plugin and the brand new "next gen" VMC client. We will peek under the hood to see what's new in the Cloud Foundry architecture. From Cloud Foundry beginner to expert, this session has something for everyone.

About Jennifer Hickey

Jennifer Hickey

Jennifer Hickey is a Sr. Software Engineer with SpringSource/VMware, with over a decade of experience in software engineering. Jennifer is a member of the Cloud Foundry team, specializing in developer experience and support of frameworks such as Spring, Grails, Rails, and Sinatra. She is passionate about increasing developer productivity in the cloud. Jennifer has led or contributed to a number of SpringSource projects, including Hyperic and tc Server. She has been involved in converting multiple large EJB/legacy codebases to Spring. Prior to joining SpringSource, Jennifer was a principal architect of a large-scale network management system.

More About Jennifer »

About Ramnivas Laddad

Ramnivas Laddad

Ramnivas Laddad is a SpringSource Principal Engineer. He has over a decade of experience in applying his enterprise Java and aspect-oriented programming (AOP) expertise to middleware, design automation, networking, web application, user interface, and security projects.

Ramnivas Laddad is a well-known expert in enterprise Java, especially in the area of AOP and Spring. He is the author of AspectJ in Action, the best-selling book on AOP and AspectJ that has been lauded by industry experts for its presentation of practical and innovative AOP applications to solve real-world problems. Ramnivas, a Spring framework committer, is also an active presenter at leading industry events such as JavaOne, JavaPolis, No Fluff Just Stuff, SpringOne, Software Development, and has been an active member of both the AspectJ and Spring communities from their beginnings.

More About Ramnivas »


This Week in Spring - Feb 5th, 2013

Engineering | Josh Long | February 06, 2013 | ...

Welcome back to another installment of This Week in Spring --

There's some great video content is available online this week, so be sure to check the content out. Also, you asked and we are delivering - we now maintain an single index page for all SpringOne2GX recordings along with the link to the InfoQ page for their recordings of the event. On with the roundup!

  1. Rossen Stoyanchev has announced the 2.4M1 and 2.3.2 releases of Spring Web Flow.
  2. Dream team Sam Brannen (Swiftmind) & Rossen Stoyanchev (SpringSource) join forces on Feb 21st, 2013 for a Webinar: Testing Web Applications with Spring 3.2
  3. Dave Syer is taking his SpringOne2GX talk to an online audience on Feb 14th, 2013 When and Why Would I Use OAuth2?
  4. Jeremy Grelle's talk from SpringOne2GX 2012 introducing practical patterns for asynchronous, push-enabled applications is now available online.
  5. Craig Walls' presentation from SpringOne2GX 2012 Introducing Spring Social is now available on YouTube in HD.
  6. Craig Walls' Javascript - focused talk from SpringOne2GX 2012 Client Side UI Smackdown, is now available on YouTube in HD.
  7. Over on InfoQ China (where the content is in Chinese...), blogger Ding Xuefeng has done a marvelous job shining a light on some of the various Spring sub-projects, including Spring Data, Spring Batch, Spring Integration. Definitely worth a read!
  8. The slides from Spring framework committer Sam Brannen's talk on Spring Framework 3.2 are available, and make for a fascinating read.
  9. This blog explains how to lookup and use a JavaMail Session as configured in Tomcat's JNDI from a Spring application.
  10. The softtech blog has a code-heavy post introducing how to create a one-to-many relationship using Spring Data JPA.
  11. <LI>The <EM>Guident</EM> blog has a nice <a href="">post introducing  Spring Data Hadoop's support for HBase.</a> </LI>
    <LI> The <EM>Dinesh on Java</EM> blog has a nice post on  <A href="…

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