title: Hibernate Upgrade : StatisticsService()
body: <p>I am upgrading hibernate from 3.6 to 4.3.5. </p>
  
  <p>After replacing the <code>.jar</code> files and some deprecated packages, classes &amp; also the Basic data types I am still getting some errors with the <code>StatisticsService()</code> &amp; in <code>org.hibernate.jmx</code> package.</p>
  
  <p>The errors are following:</p>
  
  <pre><code> 1. error: package org.hibernate.jmx does not exist
      [javac] import org.hibernate.jmx.StatisticsService;
   2. error: cannot find symbol
      [javac] StatisticsService stats = new StatisticsService(); // MBean implementation
  </code></pre>
  
  <p>Is there any other method to implement this OR the package itself is deprecated ?</p>
  
  <p>What is the alternative way to resolve this error ?</p>
  
  <p>Thanks.</p>