Pragmatic Programmer Issues

Category: spring

Spring Migration Analyzer – The Beginning

Comments: 1

Spring Team surprised us once again with Spring Migration Analyzer tool. Migration with Spring wasn’t so painful, BUT this one create report for us. Now it easier to estimate effort and we now spots where we should put our attention. I read InfoQ article: “Spring Migration Analyzer: An Assistant For JavaEE To Spring Conversion” about great […]

Spring Template Objects Testing

Comments: 2

My friend asked me, how we should test this piece of code public void fire(final NotificationMessage message) { jmsTemplate.send(new MessageCreator() { @Override public Message createMessage(Session session) throws JMSException { return session.createObjectMessage(message); } }); } Mock, stubs, arguments matchers are not successful here. Of course we can mock jmsTemplate, verify if send method was executed, but […]

Spring Data – Redis – tutorial

Comments: 2

Spring Data project provides a solution to access data stored in new emerging technologies like NoSQL databases, cloud based services etc. When we look into SpringSource git repository we see a lot of spring-data projects: spring-data-commons: common interfaces and utility class for other spring-data projects. spring-data-column: support for column based databases. It has not started […]

Spring jdbc namespace

One of the new feature of Spring Framework 3.0 is more namespaces. Today I want to write about jdbc namespace, which I’m using in last project. The namespace is really simple, it has two main elements initialize-database – which allow us to initialize database with scripts. embedded-database – which allow us to start embedded database. […]