title: How to get hold of Spring Application context in my web app in a Stand alone java program
body: <p>I have already a webapp which is having Spring application context defined in a web.xml. Also I have a stand alone program in the same Project which call a webservice and get a list of products and insert those values in a table. This Stand alone program is like a scheduler which executes in its particular time. 
  My doubts are as follows.</p>
  
  <ol>
  <li><p>Can I create an application context in my Stand alone program as below</p>
  
  <p>ClassPathXmlApplicationContext context = 
      new ClassPathXmlApplicationContext("/myConfig.xml");</p></li>
  </ol>
  
  <p>or</p>
  
  <ol>
  <li>How to get the already loaded application context in my web app.</li>
  <li>can we have multiple application context created in a same project</li>
  </ol>