Code for this blog can be found on github at

Monday, March 19, 2012

Spring Integration's new Scala DSL

I don't usually mention Scala, and I don't get a chance to work in it anymore, but I thought I would mention that Spring Integration has released the first milestone of the Scala DSL, which makes using SI very easy and readable inside a Scala program.

Thursday, March 15, 2012

TIP: Collections and "Autowire by Type"

I recently found a coworker who hadn't seen the bulk injection feature in Spring.  We had a need to dispatch to one of many beans in our code based on some logic.  I pointed out that with a little bit of refactoring, the selection logic can live along side the transformer that needs to be called, and the service won't need to change as we add more transformers.  Here's how.