News and Announcements  

News and announcements

Spring Mobile 1.1.0.M2 Released

Dear Spring Community,

We are happy to announce the release of Spring Mobile 1.1.0.M2!

Spring Mobile provides extensions to Spring MVC that aid in the development of cross-platform mobile web applications.

This release adds LiteDeviceDelegatingViewResolver, a ViewResolver implementation that adjusts the view name based on Device and SitePreference. It then delegates to another ViewResolver to complete the process of resolving the view. This release is built and tested against Spring Framework 3.2. See the changelog and reference manual for more information. Many thanks to the community for their support with regard to this new feature, including Scott Rossillo for his initial pull request and Neale Upstone for his input and feedback.

To retrieve the software, download the release distribution, or add the maven artifacts to your project. Sample apps are available at github.com/SpringSource/spring-mobile-samples

If you are building a mobile web app, we encourage you try out Spring Mobile 1.1.0.M2 and collaborate with us on the next iteration of the project.

This Week in Spring - January 15th, 2012

Welcome to another installment of This Week in Spring! Can you believe we're already halfway through January? We've got a lot to cover, so let's press on! In particular, there's a lot of great video content to keep you occupied for hours this week. Enjoy!

  1. Join Scott Andrews as he discusses the role of Javascript in an exciting webinar on January 24, 2013: Architecture of a Modern Web App.
  2. Join Brian Cavalier and John Hann as they discuss Inversion of Control (IoC) and Javascript in a Webinar on January 31, 2013: IOC + Javascript.
  3. The A thought with a cup of coffee!!! blog has an introductory post comparing Spring's ApplicationContext to the more general class, the BeanFactory.
  4. Last year in April, I spoke at the Great Indian Developer Summit in Bangalore, India. The show was amazing and - I've just been made aware - some of the videos are starting to trickle online. One talk I gave was Spring and Cloud Foundry: a Marriage Made in Heaven, which you can watch online. Unfortunately, they don't seem to also have the slides! You can get the slides from my SlideShare.net profile page. There are multiple permutations of this deck. Enjoy!
  5. We released two new SpringOne2GX session replays, Automated Provisioning of Spring Apps to EC2 & VMware vCloud, and Addressing the Big Data Challenge with a Graph: Spring Data Neo4j.
  6. Did you miss Jan Machacek's fantastic talk, Akka Eye for the Spring Guy or Gal, from SpringOne2GX 2012? This video is also available on InfoQ!
  7. The Java Code Geeks blog has a nice dissection of the way Spring MVC's RequestMappingHandlerMapping class works.
  8. Roy Clarkson and Craig Walls' talk, Extending Spring MVC with Spring Mobile and JavaScript, is also now available on InfoQ!
  9. Want to take baby steps in learning core Spring 3.0? This blog's for you!
  10. Brian's Java blog has a fairly exhaustive introduction to building a SOAP-based web service using Spring Web Services. Definitely worth a read if you need to build contract-first, document-literal SOAP webservices!
  11. Mark Reddy's written a nice blog on how to use Spring's autowiring capability in conjunction with the @Qualifier annotation.
  12. The Kruders blog has an (I confess) very introductory look at how to setup a Spring MVC project with Log4j, but, sometimes, this is exactly what you need!
  13. The Java Creed blog has a nice introduction to Spring's caching support as of 3.1.
  14. Christos Matskas has put together a nice post on how to handle multiple object definition files with Spring.NET
  15. The HMKCode blog also has a nice introductory look at core Spring.
  16. The Kani Notes blog has a nice introduction to data-access logic with Spring and JDBC. Old school but still cool!
  17. Xavier Padro's written a nice post on how to test WebFlow 2 flows with inheritance.
  18. The fpqqchao blog has a nice post on using Spring's RoutingDataSource. The post is in Chinese, however, so have your Google Translate (or equivalent) plugin's handy!
  19. Mashooq Badar has put together a nice post on building a master/worker architecture with Spring Integration.
  20. Also, due to some issues with audio/video rendering, we've released a remastered recording of a November webinar: Data Access with Spring -- Getting the most out of JPA, JDBC and REST
  21. Scott Andrews' epic talk from SpringOne2GX 2012 - Architecture of a Modern Web App - is now available online on InfoQ. Don't miss this month webinar (above) for an updated talk.
  22. Ben Hale gave a very well received talk on RESTful API design with Spring MVC at SpringOne2GX, which you can also find online at InfoQ.

     

SpringOne 2GX 2012 Replays: Automated Provisioning of Spring Apps to EC2 & VMware vCloud, Addressing the Big Data Challenge with a Graph

Automated Provisioning of Spring Apps to EC2 & VMware vCloud

This session will focus on deploying and managing your Spring Application in the cloud using VMware vFabric Application Director. A series of Spring applications, increasing in complexity, will be deployed. The deployments will cover generating property files and activating Spring profiles. Some other highlights of the presentation will be deploying to VMWare vCloud & EC2, updating an existing deployment, and some general tips & tricks.

The session will begin by using a simple contact application to be deployed as a standalone webapp with an in memory DB on single node, then it will continue with a more advanced example using PostgreSQL DB on a separate node, and finally demonstrate the use and configuration of an external DB & an Apache proxy. The session will conclude with the deployment and discussion of Nanotrader, a sample trading application, with complex requirements.


About Brian Dussault

Brian Dussault

Brian Dussault is a Staff Engineer with the vFabric division of VMware and has 14+ years of experience in software engineering. Throughout his tenure, he has worked in both IT (High Tech Manufacturing, Financial Industries) and R&D positions. His experience spans multiple disciplines including web applications, integration, SOA, open source, and system design.

More About Brian »


About David Winterfeldt

David Winterfeldt

David Winterfeldt works at VMware on the VMware vFabric Application Director project. It enables developers and organizations to deploy applications to the cloud by having a logical abstraction for software services and application topologies. This allows an application to be easily deployed multiple times to different environments.

David has been doing software development for over 20 years. He's been using Java since 1998 and involved in using Open Source almost as long. David has focused on Web and Enterprise development for most of his career, and started working with the Spring Framework in 2006.

David runs the website Spring by Example, which is a site for sharing Spring examples. The site is a general resource for Spring and should ultimately save developers time. He's is also an Apache committer on Struts and Commons Validator, as well as the creator of Commons Validator (although currently no longer active on either).

More About David »

 

Addressing the Big Data Challenge with a Graph

Graphs are everywhere. From websites adding social capabilities to Telcos providing personalized customer services, to innovative bioinformatics research, organizations are adopting graph databases as the best way to model and query connected data. If you can whiteboard, you can model your domain in a graph database.

In this session Emil Eifrem provides a close look at the graph model and offers best use cases for effective, cost-efficient data storage and accessibility.

Take Aways: Understand the model of a graph database and how it compares to document and relational databases Understand why graph databases are best suited for the storage, mapping and querying of connected data

Emil's presentation will be followed by a Hands-on Guide to Spring Data Neo4j. Spring Data Neo4j provides straightforward object persistence into the Neo4j graph database. Conceived by Rod Johnson and Neo Technology CEO Emil Eifrem, it is the founding project of the Spring Data effort. The library leverages a tight integration with the Spring Framework and the Spring Data infrastructure. Besides the easy to use object graph mapping it offers the powerful graph manipulation and query capabilities of Neo4j with a convenient API.

The talk introduces the different aspects of Spring Data Neo4j and shows applications in several example domains.

During the session we walk through the creation of a engaging sample application that starts with the setup and annotating the domain objects. We see the usage of Neo4jTemplate and the powerful repository abstraction. After deploying the application to a cloud PaaS we execute some interesting query use-cases on the collected data.



About Emil Eifrem

Emil Eifrem

Emil Eifrem is CEO of Neo Technology and co-founder of the Neo4j project. Before founding Neo, he was the CTO of Windh AB, where he headed the development of highly complex information architectures for Enterprise Content Management Systems. Committed to sustainable open source, he guides Neo along a balanced path between free availability and commercial reliability. Emil is a frequent conference speaker and author on NOSQL databases.

More About Emil »

About Michael Hunger

Michael Hunger More

This Week in Spring - January 8th, 2013

Welcome back to another installment of This Week in Spring. As usual, we've got a lot to look at, so, without further ado...

  1. GigaOM has a nice roundup of some of the exciting and important tools in the big-data ecosystem right now. There are many different tools serving different segments of the use cases, and of course Spring Data is mentioned in there, too!
  2. The ODBMS Industry Watch blog and professor Roberto V. Zicari has a nice interview with Spring ninja David Turanski on Spring Data. Definitely a good read!
  3. Robin Varghese has put together a straight-forward blog on sending email with dynamic templates driven by Velocity. This seems to be a common use case, and it's always good to find more up-to-date resources. Many people will no doubt have found Matt Raible's post from 9 years ago on the same subject, which is also very illustrative but, alas, a little outdated. Nice to see this more updated approach to an old classic!
  4. Hey, this is interesting! Did you guys know there was a Spring for Delphi (also, I guess, referred to as Spring4D)? Me either... @_@ With that in mind, I found this post introducing some of the collection libraries that seem both very friendly and powerful in Spring for Delphi. Cool!
  5. Eren Avşaroğulları has a nice post showing how to use dynamic languages (in particular, Groovy) with Spring.
  6. Dinesh Rajput has put together a blog introducing some of the features unique to the Spring Batch 2.x generation, which - while Spring Batch 2.x has been out for years - is always worth a look!
  7. The Java all and Sundry blog has a nice writeup on a piece of Spring MVC's machinery, the RequestMappingHandlerAdapter.
  8. Alex Soto's back, this time with a post on unit testing Spring Data MongoDB with NoSQL Unit! Cool.
  9. The Java Success blog has a post introducing some of the landscape for enterprise integration solutions in the JVM community, and demonstrating some of the concepts of enterprise integration, specifically, with Spring Integration.
  10. The Develop and Conquer blog has a nice example with some trickery to inject a java.util.Date value using the Spring Expression language and the @Value annotation. Very cool!
  11. Abhijit Ghosh put together a decent SpringMVC-based HelloWorld application using Tomcat, Maven, Eclipse (m2e).

SpringSource Training Schedule: May 2013

If you are a Java developer looking to increase your Spring knowledge, vFabric Education by SpringSource is the place to start. We are providing several Spring trainings across the globe closely connected to your needs as a professional developer.

This month SpringSource offers a 15% discount code on all VMware trainings (partners not included). Please use the following referral code during the website registration process: springcustomerpromo. The complete Spring training schedule for May, 2013 can be found below:

Step 1: Core Spring

Americas

Asia Pacific

Europe, Middle East & Africa

Step 2: Spring Web / Enterprise Integration with Spring / Hibernate with Spring

Americas

Europe, Middle East & Africa

Live Online

If you cannot find a professional training near you, you can always request an onsite SpringSource training

This Week in Spring - January 1, 2013

I almost typed 2012 when I composed this post! It's already 2013! I hope your holidays were wonderful. Welcome back to another installment of This Week in Spring! It's time to begin another exciting new year (and to remember to use the correct new year in text!). With that, let's have a look at the new and exciting content from all around the community.

  1. The epic book by Spring Security lead Rob Winch and Peter Mularien on Spring Security 3.1 by Packt publishing is now out! The book is a great resource for people who are looking at Spring Security and want the scoop from the source.
  2. Are you using Spring Security to handle login and logout in your application? Sometimes it's necessary to tailor the behavior of how login and logout are accomplished. Perhaps you need to tear down some state or do logging. In any event, this post demonstrates the configuration and base contract of a logout handler.
  3. Chris Shayan has a nice post that illustrates how Spring Batch can help make short work of complex enterprise-y batch processing, complete with code and examples! Nice job!
  4. The Java Kart blog has a nice post that introduces Spring Data Redis with the JRedis client library
  5. Desam Venu Madhava Reddy has a very simple post identifying some of the main reasons why people use Spring. There are many reasons people come to Spring, and these are some of the very high level ones.
  6. The Cafe Techno has a nice post on the complete setup of a SimpleFormController in Spring MVC. The example uses Spring MVC and explicitly wires up the machinery for working with Spring MVC. You don't need to do much of this in Spring 2.5 (introduced in 2007) and later, instead relying on the defaults and conventions. That said, if you want to override the framework, then understanding some of these things are wired together can be very helpful.
  7. The Developer's Diary blog has a nice post on autowiring a map, list, or array using Spring annotations
  8. This blog is in Chinese, and has a simple example of how to setup a Spring MVC 3.2 example. NB: I'd recommend using the Java-centric configuration for this, as this is needlessly XML-centric. In a Spring 3.1+ and Servlet 3 environment, there's no need for XML (for Spring MVC or web.xml).
  9. The all and sundry blog has a nice post on Spring Data JPA and pagination
  10. This post is in Japanese, and from what I can gather it's aimed at showing how to build a lean Spring application using MyBatis, Freemarker, etc.
  11. This post is also in Chinese, and shows the various kinds of dependency checking in Spring.
  12. http://manikmagar.wordpress.com/2013/01/01/spring-mybatis-integration-and-junit-testing-using-springs-embedded-database/
  13. I had some time over the holiday and decided to quickly scratch one item off of my 2012 new years resolutions (I got it done before new years, and besides, better late than never!): I migrated my photos away from my Flickr account to another service which was cheaper and more invested in. To do this, I used the community-supported Spring Social Flickr project. The project is, decidedly, not yet finished, but works well enough. I forked it and added a Spring Batch downloader which reliably downloads all the photos into albums named for the ID of the https://github.com/joshlong/spring-social-flickr
  14. The Fish blog (also in Chinese) has a nice post on using the Danga memcached client from Spring.
  15. Simon Massey has a nice post on server-side pagination with ZK (a widget-centric web framework), Spring Data MongoDB and Google Maps. Do I need to say anymore? Check it out!
  16. The Dinesh on Java blog has a nice, introductory post on using Spring MVC interceptors. Good stuff!

This Week in Spring - 18 December, 2012

Welcome back to another installment of This Week in Spring! Can you believe we're already further along through December than not? Time sure flies, and yes, we are staring down the end of the year already - but the holiday season usually brings a SpringFramework release right around this time of year, so we're feeling festive! We've even gots tons of extra SpringSource buttons to celebrate.

Buttons!

  1. First and foremost, Spring 3.2 has gone GA! Just read the post. Waay too much awesome in one release, and - if you've been following this series over the year than you know I've been looking forward to it. Come back and read the rest when you've upgraded your application and played with some of the awesome new stuff! I'll wait... You know what the best part is? Usually, after a new Spring release, the release train of other Spring projects is quick to adopt - so expect lots of releases in the new year!
  2. Next up, Spring Security lead and ninja Rob Winch just announced Spring Security 3.2.0.M1, packed with new features for Servlet 3 environments, among other things.
  3. We could just stop right there, you know? BUT, there's more! In this blog post, Rob Winch has answered some of the very common questions we tend to get regarding how Spring Security integrates in a Servlet 3 environment, and the results are amazing! Definitely worth a read. This stuff, following the new Spring MVC 3.2 servlet 3 support, is sure to make Servlet 3 environments like Apache Tomcat 7 an attractive offering for anyone doing serious enterprise work: no pain upgrades, lightweight and you get all these cool new runtime capabilities with Spring 3.2 and Spring Security.
  4. Not to be outdone, Alan Stewart announced Spring Roo 1.2.3, which includes support for Spring 3.2 and a slew of fixes and updates in this, the third maintenance release of 1.2.
  5. Are you using Spring with Google App Engine? Lots of people are! Spring's the only way to do serious enterprise Java development on Google App Engine, after all, without giving up a lot of functionality. Nonetheless, Google App Engine has some unique constraints that offer Spring developers some... challenges. This blog post shows how to address some of these issues on Google App Engine. On every other cloud, including Cloud Foundry, these "optimizations" are not required or even reasonable, so feel free to ignore them if you're not on Google App Engine.
  6. Guys, HTML 5 was just completed. From the release: "Though not yet W3C standards, these specifications are now feature complete, meaning businesses and developers have a stable target for implementation and planning." What's this mean for you guys in practice? Not much - HTML5 as we know it has been fairly stable for some time, but if you were looking for a reason to take the plunge, that should be it. And, SpringSource is ushering in the new era of HTML5 and JavaScript development with lots of interesting stuff aimed at civilizing this new frontier and increasing productivity. For a peak at some of the new bits, check out the upcoming webinars IOC + JavaScript and Architecture of a Modern Web App.
  7. The steady stream of amazing content from SpringOne2GX DC continues, this time with videos introducing WebSockets and how to Secure REST with OAuth 2. Be sure to grab a cup of coffee, sit down and enjoy these two 90 minute videos. Web Sockets is becoming an increasingly important part of the web landscape for messaging, and OAuth is already one of the most entrenched protocols on the web, providing the foundation for modern day, secured web services with REST, so both of these videos are not-to-be-missed.
  8. There is a lot of great Spring Social news this week! First, Craig Walls announced Spring Social Yammer 1.0.0 on behalf of Morten Andersen-Gott. Nicely done Morten! Yammer is a popular enterprise-y microblogging service, among many other wonderful things, and this integration will sure to be very useful for lots of enterprises. I've used Yammer before and it worked really well.
  9. Next, Mark Serrano blog wrote a very nice tutorial-style article on using Spring Social, Thymeleaf and Java configuration (already on Spring 3.2!).
  10. Gabriel Axel has released Spring Social Google M2, including Google Drive support. For more, see his announcement tweet.

Spring Security 3.2.0.M1 Released

The first milestone release toward Spring Security 3.2 is now available from the SpringSource repository at http://repo.springsource.org. See here for a quick tutorial on resolving these artifacts via Maven.

The highlights of this release include:

  • Concurency Support
  • Servlet 3, Async Support
  • Spring MVC Async Integration
  • Servlet 3 API Integration
  • New Servlet API Sample Application

Stay tuned to the SpringSource Blog over the coming week for information on what's new in 3.2.0.M1.

Changelog | Download | Reference Manual | FAQ

This Week in Spring - 11 December, 2012

Welcome to another installment of This Week in Spring! We finished SpringOne China over the weekend and are today at the first of two events for SpringOne India in Bangalore and SpringOne in Hyderabad. The shows have been really amazing! In particular, we've enjoyed the food, the sites and the amazing community that have turned up in droves!

An attendee took a shot of me as I was giving a talk on Spring on Cloud Foundry Dr. Mark Pollack, myself, Gary Russell and Chris Richardson at a restaurant in Beijing
I gave a talk in Bangalore and people deluged the stage with questions and greetings. I asked the last wave of people to take a photo with me. LtoR: Gary Russel, Josh Long, Jennifer Hickey, Jeremy Grelle, Oliver Gierke, Chris Richardson -- the whole SpringOne India lineup

 

  1. Roy Clarkson has announced Spring for Android 1.0, which adds support for Jackson 2.x in RestTemplate through the new MappingJackson2HttpMessageConverter. It also addresses several bugs and compatibility issues with RestTemplate and Android Jelly Bean.
  2. The TomcatExpert.com portal has a nice post on Spring Insight Developer to analyze code, install it with Tomcat, and extend it with plugins.
  3. Spring Scala lead Arjen Poutsma has a nice post introducing Spring Scala.
  4. The folks over at Trifork have a great blog on properly testing Spring MVC controllers
  5. I'm going to be honest here -- I don't know, exactly, what this post is about, as it's written in Korean and the Google translation's not particularly helpful. It seems like the author's discovered a caveat related to Spring MVC's @SessionAttribute and provided a work around. Hopefully, it's useful to you if you read Korean!
  6. Are you using RabbitMQ from a .NET environment? Check out this post on EasyNewQ which is a .NET client for RabbitMQ.
  7. The GoSmarter blog has an interesting post on how to setup a fake FTP server to unit test Spring Integration FTP flows. The blog also has a nice post on mocking SFTP support in Spring Integration.
  8. The GoSmarter blog also has a nice post on using Spring Security and container-managed security
  9. Also from the GoSmarter blog, a nice post on doing test-driven development with Spring Webflow.
  10. The MonoCaffe blog has a nice post on using a Spring MVC JSP tag to allow pre-pending and appending of icons to Bootstrap's input fields.
  11. The Zen Java blog has a nice post on using creating a RESTful Spring MVC service that is consumed from Java FX. This is really slick.
  12. The Cafe Techno blog has a nice post that compares Spring MVC and Struts. Spring MVC fares very well, I'd say!
  13. The a Quick Guide to Java blog has a good post on Spring MVC internationalization.

Tomcat Expert: Use Spring Insight Developer to Analyze Code, Install it with Tomcat, and Extend it with Plugins

Did you know Springsource offers a free code trace / analysis tool with a large ecosystem of plugins, and is now extensible beyond Java? People are still discovering the benefits of the free tool from VMware SpringSource, called Spring Insight Developer . The Tomcat Expert blog provides an short explanation of what Spring Insight Developer does, how to set it up with Apache Tomcat , and an example of available plugins.  

Learn more at the TomcatExpert Blog and experience faster, easier troubleshooting!

 

 

Newsletter Subscription

Our monthly newsletter is packed full of techniques, tutorials, tips and tricks to get you on your way to Spring nirvana. View Archive


Upcoming Events

Upcoming Training

Syndicate content