title: licensing in glassfish app server
body: <p>I want to put license management in my application . Application is running on Glassfish and deploying Restful web-service .<br>
  I have no clue where to start for licensing . <strong>What should I put in deployment descriptor that my code is executed and decide whether to load the application or not .</strong></p>
  
  <p>I would be grateful if someone points me to the links to start with or post a small code snippet to begin with .</p>