title: Access Spring beans from a servlet in JBoss
body: <p>I want to write a simple servlet in JBoss which will call a method on a Spring bean. The purpose is to allow a user to kick off an internal job by hitting a URL.</p>
  
  <p>What is the easiest way to get hold of a reference to my Spring bean in the servlet?</p>
  
  <p>JBoss web services allow you to inject a WebServiceContext into your service class using an @Resource annotation. Is there anything comparable that works in plain servlets? A web service to solve this particular problem would be using a sledgehammer to crush a nut.</p>