Using Hibernate second level cache with JBoss AS and WildFly
[Updated to WildFly 10]
Hibernate is able to cache entities or queries using two distinct query mechanism. The first level cache and the second level cache. In this tutorial we will shortly recap the two kind of caches and the configuration needed to get it running with JBoss 5-6-7 and WildFly using either JPA 1 and JPA 2 annotations.