Latest Added Tutorials
<tx:annotation-driven transaction-manager="transactionManager"/>
<bean id="transactionManager"
class="org.springframework.orm.hibernate4.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate4.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="packagesToScan" value="com.codesenior.telif.local.model"/>
<property name="hibernateProperties">
<props>
As an alternative to the Ehcache Monitor, JMX creates a standard way of instrumenting classes and making them available to a management and monitoring infrastructure.
Overview
JMX creates a standard way of instrumenting classes and making them available to a management and monitoring infrastructure. The net.sf.ehcache.management package contains MBeans and a ManagementService for JMX management of ehcache. It is in a separate package so that JMX libraries are only required if you wish to use it - there is no leakage of JMX dependencies into the core E...Devamını Oku
Using Spring Framework we can see Hibernate statistics such as second level hit count via JVM. JMX is good way to expose parts of your application for monitoring and management.
In order to use Hibernate statistics in JMX, we sould add following dependencies:
org.hibernate
hibernate-jmx
3.5.6-Final
org.hibernate
hibernateContinue Reading
To use EHCache library with Hibernate 4 we should add following dependencies:
org.hibernate
hibernate-ehcache
4.3.8.Final
net.sf.ehcache
ehcache-core
2.6.10
In Spring we can configure hibernate + ehcache as follows: