Blog-127.0.0.1

So what can you expect to find on this blog? I can promise you will not find recipes for buns or DIY dinning table even though i'm actually pretty good at both. You will find what I call small git blog's with examples for Maven, Java, Wildfly, Spring, Apache Camel and Java EE examples baked on my experiences when I encountered the different technologies..

Take JPA to another level in Apache Camel

Camel comes with an impressive number of modules, and one of them is the ability to use JPA in Camel routes to consume/produce with JPA.

There are many examples and guides showing how you can set up and work with basic Camel JPA. But I found little help using JPA in beans with camel routes.

This post will give you a little background information on how @PersistenceContext and transaction work with Camel and introduce you to the Camel Entity Manager Post Processor.

JBoss Marshalling the hidden serialization framework

A few years back, I had the challenge to find a better solution for sending data between our client and server, and I think it’s about time to blog about it :-) We have been using XStream to serialize our java model to XML and it is sent via web service. This has been working fine for a long time, but our data structure was increasing in size and we started to suffer for performance, increasing memory footprint and unnecessary complexity.

It was time to come up with a new solution.

Hibernate OGM with JPA and Infinispan on Wildfly 8.2

Recently, we had a task where we had to choose whether we should use the current architecture.

“Entity->JPA->Hibernate ORM->Cache->SQL”

Alternatively, whether to use Hibernate OGM as a persistence layer to a NoSQL provider.

“Entity->JPA->Hibernate OGM->NoSQL”