Monthly Archives: December 2013

ModelMapper + JBatch = Easy integration pipeline


JBatch is great as a way to standardize batch writing but there is nothing in the spec itself to do anything concrete (JPA, JDBC, …). In JavaSE you feel quite naked (even if BatchEE and Spring-Batch try to fill this providing some components) but in JavaEE it looks quite obvious: your JBatch components are CDI beans so you get easily injected your EntityManager and then do what you want as easily as saying it!…or almost. It is quite trivial for reader/writer but you rarely want to persist what you read when your batch is a database to database one.

That’s where the new ModelMapper integration module from BatchEE will help you.

Continue reading