Visit our blog
News & Events
This Week in Spring - April 24th, 2012
Welcome back to another installment of This Week in Spring! As I compile this, I'm eagerly waiting for
Costin Leau to begin his talk on NOSQL with Spring here in sunny, and beautiful Kiev, Ukraine, the first stop in the European leg of the Cloud Foundry Open Tour. The turnout for this event's been staggering! If you're reading this, then you've already missed out on the chance to attend the Kiev event, but be sure to register for the upcoming Moscow and London events.
In this SpringOne 2GX 2011 session, Mark Fisher and Thomas Risberg
transform a monolithic enterprise application by changing its relational DB with a NoSQL one, introducing modularity, adding polyglot support and incorporating message queuing and event driven request processing using common enterprise integration patterns.
- Did you guys notice that the final edition of the excellent Spring Roo in Action has just been published?
This book is, as Ben Alex (Spring Roo project founder) put it, "an insightful and comprehensive treatment." I (personally) can't recommend it enough. Ken Rimple and Srini Penchikala, as long time readers of this roundup will know, are frequent Spring community bloggers and
routinely provide amazing content on all things Spring.
Blogger Billy Sjöberg on DZone has a great post on how to bridge JMS and RabbitMQ.
This example uses Spring Integration, and provides a very powerful example of how to use the Spring Integration JMS adapter and the AMQP adapter.
The doanduyhai blog
has a great entry on how to use Spring Security to solve a common problem: how do I detect a user session timeout with an Ajax request? The example comes complete with an introduction and a lot of sample code.
- The furiousbob blog has a great post introducing how to use
Scala to build a RESTful service with Spring MVC.
Blogger Carlo Scarioni has a great blog introducing how to create custom Spring 3 XML namespaces.
- Blogger Duck Ranger follows with the second part of his series introducing how to setup Spring MVC applications with
SpringSource Tool Suite. This blog goes beyond relying on the built-in
templates, and looks at tailoring the Spring MVC request mapping.
version 2.0, is out. The project is a Spring integration for the Memcached caching server. It provides a way to configure the behavior of the cache. This API's pretty awesome, but I (personally) would love to see a Spring 3.1
- Blogger benkiew has put together a blog that explains how to
retrieve references to a
prototype-scoped bean that's been injected using some of the supported Spring annotations (
@Inject). The problem's easy to imagine: suppose I have a bean that's bound to the HTTP scope. It will be recreated each time it's accessed in a unique HTTP request. Scoping works to ensure that a bean is only uniquely recreated once per scope. So, ten accesses of the same HTTP-request-scoped bean during a single HTTP request will result in the same reference, but separate accesses across two different requests will result in the creation of two beans. So far, this maps nicely with what we would expect. What happens when I inject a reference to a bean that is not scoped - or, it's scope is longer lived than the bean that's scoped? In this instance, you
need a scoped proxy - a proxy object that manages (and refreshes, as appropriate) accesses to a bean.
Here's a very simple example of injecting a scoped proxy that is recreated each time the bean is used (e.g., it's recreated each time it's accessed).
- The Java Code Geeks has a great blog that introduces AOP (drawing inspiration from Ramnivas Laddad's excellent book AspectJ in Action).
- The Hot Java blog has a step-by-step recipe for creating a Spring MVC project using Netbeans.
- Blogger Petri Kainulainen has put together the next installment of a series of blogs focused on Spring Data, this time introducing the pagination and
The prabinhada blog has a great look
at how to setup JSF and Spring. The Spring-JSF integration provides the ability to reference and rely on Spring beans from JSF. Spring
can also manage backing beans. This example gives all the painstaking details of the integration.
Another approach is to use Spring Roo 1.2 or later , to create a simple JSF application with
web jsf setup command.
This approach will let you choose one of two JSF implementations, setup a theme, setup the internationalization, and much more, all for a few minutes of banging around on the shell.
Our monthly newsletter is packed full of techniques, tutorials, tips and tricks to get you on your way to Spring nirvana. View Archive