Second level cache
I tried to configure usage of second level cache for Hibernate under JBoss.
I tried EH Cache configuration and Hibernate-jboss configuration. However, in both cases logging of org.hibernate.SQL has produced multiple records when activating NamedQuery multiple times.
I also added QueryHint org.hibernate.cacheable=true to the query, but that didn't help either.
How can i verify that cache is working and objects are cached ?
(cache log showed that cache has been initialized at a region with my EAR file)