Dienstag, 30. Juni 2009

Hint: Injecting static variable into Spring Beans

Several times I was wondering if it is possible to inject the value of a static variable into spring beans, now I stumbled over the solution:
<util:constant static-field="MyClass.MyStaticVar"/>

Freitag, 3. April 2009

A-Player or not

Investments in mediocre, but cheap software architecture only leads to mediocre results.

Where are you heading?


Dienstag, 31. März 2009

Rock star environment

Good talk by David Heinemeier Hansson at the FOWA in Dublin : http://vimeo.com/3899696

"You're all rock stars....Bullshit! There are no rock stars, we don't have rock stars! What we have is a rock star environment, where we allow people to be the best that they could be..."

Dienstag, 3. März 2009

Hold your horses - An idea becomes reality. Software as a Service meets the Amazon Elastic Compute Cloud... More? Soon!

Dienstag, 24. Februar 2009

Rockin' Ireland

stating the obvious

Rockstars go further, ain't no cliff's high enough

Irish Stew you won't forget...

Freitag, 19. Dezember 2008

it-rockstars became appfuse consulting provider

IT-Rockstars, the experts for project skeleton, project kick start and agile development became appfuse consulting provider.


Peter and Josip send greetings to Matt Raible :-) See you next Oktoberfest.

Mittwoch, 3. Dezember 2008

Annotation-driven transactions

Instead of programmatically implementing code or configuring Spring applicaton context xml files to manage transactions, it can simply be done by using Spring's transaction annotations. There's really not much to it. All you need to do is add the following to your Spring context:

<tx:annotation-driven />

Additionally ensure that the tx namespace is defined as per the xsi:schemaLocation

<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.1.xsd"
default-lazy-init="true" />

And now to the fun part! Add annotations to your code. I prefer to apply annotations to interfaces. That way all implementations of the interface are transactional.

...and Bob's your uncle!