how to build a container kind of thing for executing my jobs
<p>I want to develop a framework(eg automation) which people can use.The idea is i build a container kind of thing (eg tomcat but not exactly like a webserver).The container will have one xml file which will hold the enties of classes that are to be executed. (eg like web.xml of tomcat)</p>

<p>for eg xml (run.xml) can be like follows</p>

<pre><code>&lt;job&gt;jobNameXyz&lt;/job&gt;
&lt;class&gt;com.pkg.jobXyz &lt;class&gt;
</code></pre>

<p>Each of the xml job class should extedn MyBaseClass  like how servlet extends HttpServlet and override
specified method doJob</p>

<pre><code>public class MyClass extends Job{

  public String doJob(){
   //do some thing
  }

}
</code></pre>

<p>When i place Myclass inside my continner and trigger container the jobmust run and the method doJob
How can this be done?Any one can enter deploy his jobs by putting his class file in our dir and then editing run.xml
How can this be done?Any guidelines</p>
