title: Getting Active Session counts with JMX (Java Management Extensions) API
body: <p>I'm trying to use JMX API to get active session counts for a web application.</p>
  
  <ol>
  <li>Is it possible to use JMX API to get this kind of information?</li>
  <li>If yes, how reliable would it be? </li>
  <li>Any example code on how to get this done? </li>
  </ol>
  
  <p>I've been reading JMX tutorial and documentation, but they are giving me the overview of what the technology is. I just can't pinpoint to what I need, yet.</p>