title: Spring Bean running in its own thread
body: <p>Within my web application, I am trying to create a directory polling bean using Java SDK7 WatchService. What I would like to achieve is to run this bean in its own thread so that it does not block the application. Something like:</p>
  
  <pre><code>  &lt;bean id="directoryPoller" class="org...MyDirectoryPoller" scope="thread"/&gt;
  </code></pre>