Announcement Announcement Module
Collapse
No announcement yet.
job scheduling (quartz in spring) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • job scheduling (quartz in spring)

    Dear friends !
    hi !

    for my application I m using quartz support in spring for scheduling .
    Job's are depends upon the message I get.
    for e.g
    public class SimpleSpringQuartzIntegration {
    ApplicationContext ctx;
    public void execute(int i){
    if(i == 1){
    ctx = new FileSystemXmlApplicationContext("first.xml");
    }else{
    ctx = new FileSystemXmlApplicationContext("second.xml");
    }
    }
    public static void main(String[] args){

    SimpleSpringQuartzIntegration simpleSpringQuartzIntegration = new SimpleSpringQuartzIntegration();
    simpleSpringQuartzIntegration.execute(2);
    }
    }


    Is it neccessary to use seperate xml files to execute job's
    If their is any methode to combine different job's in same xml file than please reply me.
    thanks in advance...
Working...
X