title: Use Spring in a WAR
body: <p>I did jar application with Spring 3 TaskScheduler. I run this app with main method:</p>
  
  <pre><code>public static void main(String[] args) {
    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:scheduler-app-context.xml");
    ctx.refresh();
    while (true) {
      // ...
    }
    // ...
  }
  </code></pre>
  
  <p>Is it please possible run this jar, main method in web application(war file)? How to run this in web.xml.</p>
  
  <p>Many thanks</p>