title: How to implement a constantly running process in JavaEE
body: <p>How would you suggest to implement the following in JavaEE:</p>
  
  <ol>
  <li><p>I need to have a background process in the app server (I was thinking a stateful session beans) that constantly monitors "something" and if some conditions apply it does operations with the database. </p></li>
  <li><p>Most importantly it has to manipulated remotely by various clients. </p></li>
  </ol>
  
  <p>So, basically, I need a process that will run constantly, keep its state and be open for method invocations by a number of remote clients.  </p>
  
  <p>Since I'm new to JavaEE I'm a bit confused which approach/"technology" to use. An help would be appreciated.</p>