close
Newest Post

Secure Data Binding With Grails

Read more

This Week in Spring - March 27th, 2012

Welcome to another installation of This Week in Spring.
As usual, we have a lot to cover. As this post goes up, the
Cloud Foundry Open Tour is underway in Beijing, and coming to a city near you, soon. This show’s a very unique opportunity to learn more about Cloud Foundry and Spring from the experts - don’t miss out, register today.

  1. Spring web dude Rossen Stoyanchev announced that Spring Web Flow 2.3.1 has been released. This is a maintenance release featuring an upgrade to Spring 3.1.1, and JavaServer Faces 2.1.7 along with a number of bug fixes.

  2. SpringSource Tool Suite lead Martin Lippert announced the release of the Cloud Foundry Integration for Eclipse 1.0.
    This release brings a complete, cohesive Cloud Foundry integration for all Eclipse distributions, including the SpringSource Tool Suite.

  3. Martin also announced the release of SpringSource Tool Suite release, 2.9.1, featuring new features and bug fixes.
  4. <LI>    <a href = "http://www.springone2gx.com/conference/speaker/mark_fisher">Mark Fisher</A> and <a href = "http://www.springone2gx.com/conference/speaker/thomas_risberg">Thomas Risberg</A>'s epic talk from <a href = "http://www.springone2gx.com">SpringOne 2GX 2011</A>  - <EM><A href = "http://www.infoq.com/presentations/Architecture-Choices-for-Scalable-Cloud-Apps">Architecture Choices for Scalable Cloud Apps</A></EM> -  that introduces how to build scalable architectures in the cloud using technologies like Spring Integration and Cloud Foundry is now up on InfoQ. 
          </LI>
    

  5. Maciej Walkowiak has a blog that introduces how to use Spring 3.1 profiles in conjunction with some custom Tomcat configuration to activate Spring profiles without changing the deployed binary.

  6. Michal Jastak has put together a wonderful post introducing how to use Spring MVC 3.1’s support for flash attributes.


  7. Tobias Flohre is at it again, this time with two posts on Spring Batch. The first post introduces the basics of transactions in Spring Batch, and the second post introduces some of the finer points of restarting cursor-based readers and writers.

     </LI> 
    

  8. Artur Mkrtchyan has a great post introducing both how to install Redis (a fast, highly optimized data-structure server) and how to use Spring Data Redis (part of the Spring Data umbrella project that facilitates access to the wide varieties of so-called NoSQL and big-data stores) to build Spring applications that talk to Redis.
  9. Vijay Rawat has a detailed post introducing how to use Memcached in your Spring applications to acheive session replication. This approach relies on the developer specifically delegating to Memcached for Session persistence in his code. While this works, I hope that users will take a look at more transparent options. Tomcat supports pluggable session storage engines. There are numerous available implementations, including a Redis-based implementation and a GemFire-based implementation.

  10. Speaking of Apache Tomcat, blogger Ramki has an interesting post introducing how to setup virtual hosts (“vhosts”) using Apache Tomcat, Apache and ModJK.
Read more

Cloud Foundry Integration for Eclipse 1.0 released

I am happy to announce the first release of the Cloud Foundry Integration for Eclipse 1.0.

This release features:


  • deploying, updating, starting, stopping apps directly from your workspace

  • supports Java/Web, Java/Spring, Groovy/Grails and Scala/Lift apps

  • service creating and binding (directly at deploy time or later)

  • instance scaling and statistics

  • remote file browsing directly integrated

  • full debugging support for Micro Cloud Foundry

  • improved incremental update performance

  • integrated into Eclipse and STS

Read more

SpringSource Tool Suite 2.9.1 released

Dear Spring Community,

 

We're pleased to announce the update release 2.9.1 of the SpringSource Tool Suite (STS).

 

This update improves the Spring Integration graphical editing experience and fixes a performance problem with the content-assist in the Java editor when working inside a Spring project.

 

More details on new features and bug fixes can be found in the New and Noteworthy document. Detailed installation instructions are also available. As always downloads are available from the STS download page.

Read more

This Week in Spring: March 20th, 2012

Hello and welcome to another installment of This Week in Spring! As usual, we’ve got some great stuff to look at, so let’s get to it.

    <LI>  
    
        Want to use SpringSource Tool Suite on the <a href = "http://blog.springsource.org/2012/03/14/early-access-springsource-tool-suite-for-eclipse-juno-4-2/">latest Eclipse Juno (4.2) milestone builds</A>? 
        SpringSource Tool Suite lead Martin Lippert has got the answer for you.
          </LI>
    
    
    <LI> Michal Borek  has a great blog post on how to use the <a href = "http://www.greenpath.pl/2012/03/spring-framework-and-file-upload/"><CODE>ConversionService</CODE> in Spring 3.0+ to convert uploaded file data into a domain object</A>. First, this is a <EM>really</EM> cool idea. Second, users should be aware that Spring supports file uploads by default if it detects <CODE>commons-fileupload</CODE> or the Servlet 3 <CODE>javax.servlet.http.Part</CODE> APIs present on the classpath. To use this support, simply create a Spring MVC handler that takes a @RequesParam of type <CODE>MultipartFile</CODE>. For an example, see this RESTful API controller that <a href ="https://github.com/SpringSource/html5expense/blob/master/server/api/src/main/java/com/springsource/html5expense/controllers/ExpenseReportingApiController.java">accepts HTTP POST'd file uploads</A>.  If all you want is to manipulate the file data, then this is easy. The idea proffered in this post is to take it a step further, and bind that data to a domain model object. </LI>
    
    <LI> Gal Levinsky has an interesting post on removing circular dependencies in Spring applications. 
        He discusses the problems created by circular dependencies - i.e. one bean depending on another which is in turn in some way depended on by the first bean - and then <a href  = "http://gal-levinsky.blogspot.com/2012/03/resolve-circular-dependency-in-spring.html">explores some of the many ways that Spring can solve circular dependencies for you</A>.  
         </LI>
    <LI>
    

    Blogger Hemraj has a succinct post introducing how you can install the Spring web-tier machinery through the use of context loaders - ContextLoaderListener and ContextLoaderServlet.

    </LI>
    
     <LI> Over on Dr. Dobbs, Adrian Bridgwater's written a fantastic blog <a href = "http://drdobbs.com/mobile/232602788">about using Spring with the Magnolia CMS</A> with the  
        Blossom   integration module for Magnolia. 
    
         </LI>
        <LI>Spring, as a technology, is a collection of libraries that you can layer into your application with ease. It provides powerful support, usually in the term of adapter code that's exposed as AOP aspects. While this is a good thing (TM), it can make for some very deep stack traces! With Spring, however, at least you can disassemble the layers by removing libraries. The problems are far worse with other, more monolithic technologies. 
           So, blogger Tomasz Nurkiewicz has written a simple post on <a href = "http://nurkiewicz.blogspot.com/2012/03/filtering-irrelevant-stack-trace-lines.html">how to effectively isolate the errors from the stack frames that are irrelevant</A> in diagnosing a problem (Spring's frames, for example). Cool post, and it mirrors something I'm sure many of us have done at some point or another, ourselves! </LI>
    
    <LI> The Cafe Techno has a great post introducing the idea of an <a href = "http://thecafetechno.com/tutorials/spring/what-is-inner-bean-in-spring-framework/">inner bean in Spring</A>.
    
        </LI>
        <LI>  I'm sure that you heard all the news a couple of weeks ago about about <a href="http://www.springsource.org/spring-data/hadoop">Spring for Apache Hadoop</a>? Want to get started fast? Check out this <a href = "http://news.oss.tw/node/13707">Spring for Apache Hadoop quick start</a> with all the details!   </li>
    
            <LI> Blogger <EM>zousu</EM> has a great post introducing  <a href = "http://zousu.com/wp/get-started-with-mongodb-with-spring-data-1-0-1-ga-release/">how to get started with Spring Data Mongo 1.0.1 GA</A>. </LI> 
    
           <LI> Roger Hughes is back at it again, this time with a little bit of anecdotal advice on <a href = "http://java.dzone.com/articles/integrating-spring-legacy">how to integrate Spring into legacy applications</A>. I like to think of this process as <EM>Spring cleaning</EM>!   </LI>
    

Read more

Spring 3.1 Release Train Complete, Spring More Popular Than Ever

Spring 3.1 Release Train Complete

In a press release today, SpringSource and VMware announced that the Spring 3.1 Release Train is complete. Spring Integration, Spring Security, Spring Batch, Spring Data, Spring Mobile and Spring for Android all now support Spring 3.1, making it easier and faster for enterprise developers to build the next generation of enterprise applications.

The press release also highlighted important findings from Evans Data Research regarding the growing popularity and benefits of using Spring. More than two thirds of Java developers are either using Spring today or plan to do so within the next two years and those that do use Spring are 50% more productive.

Read more

Early Access: SpringSource Tool Suite for Eclipse Juno (4.2)

Wanna use the SpringSource Tool Suite on the latest Eclipse Juno (4.2) milestone builds? Here you go: :-)

How to install


Read more