title: Share instance between Java App and Web App
body: <p>I have some personal project where I am trying to share some class instance between webapp and a normal app. My project structure is something like below:<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ NormalApp<br>
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+ WebApp<br>
  I am starting the application from the NormalApp and I included WebApp using EmbeddedTomcat. Now I have a class named Notifier in WebApp. I want to use the instance of Notifier in NormalApp without losing it's state.  </p>
  
  <p>Could someone tell me how can I achieve this scenario?</p>
  
  <p>I have some plan in mind like setting the Tomcat class loader to use Systems class loader. I tried it but couldn't able to achieve it. Is my understanding of this wrong?</p>