title: JMX Client Session
body: <p>I've bean studying JMX for a while, but I'm stuck. </p>
  
  <p>I have an application that exposes some functionality to remote clients via JMX, although existing security features may be sufficiant for most cases my application uses Apache Shiro framework as the security backend. </p>
  
  <p>My problem is that i don't how to gather client data serverside. Shiro needs a way to identify a client (subject), normally executing thread is associated with a subject but online JMX documentation does not give much clue about thread model of remote JMX. </p>
  
  <p>How can i associate a client with a thread or is there a way to retrieve client data inside the interacted MBeans? </p>