9818247044

9818247044



Replace the generated source with the following lines.


packagesample.oracle.otn.soascheduler;

import sample.oracle.otn.soascheduler.job.HelloWorldJob;

import java.io.lOException;

import java.io.PrintWriter;

import java.util.Date; import java.util.Calendar;

import java.util.GregorianCalendar;

import javax.servlet.ServletConfig; import javax.servlet.Sen/letException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;

import org.quartz.CronTrigger;

import org.quartz.JobDetail;

import org.quartz.Scheduler;

import org.quartz.SimpleTrigger;

import org.quartz.T rigger;

import org.quartz.impl.StdSchedulerFactory;

import org.quartz.impl.calendar.AnnualCalendar;

public class SOASchedulerServlet extends HttpServlet { StdSchedulerFactory schedFact;

Scheduler sched;

public void init(ServletConfig config) throws ServletException { super.init(config); try {

schedFact = new StdSchedulerFactory("soa_quartz.properties"); sched = schedFact.getScheduler(); System.out.println(this.getClass().getName() +" started");

/*

// Add the holiday calendar to the Schedule AnnualCalendar holidays = new AnnualCalendar();

// fourth of July (July 4)

Calendar fourthOfJuly = new GregorianCalendar(2011,7,4); holidays.setDayExcluded(fourthOfJuly, true);

// halloween (Oct 31)

Calendar halloween = new GregorianCalendar(2011,9,31); holidays.setDayExduded(halloween, true);

// christmas (Dec 25)

Calendar christmas = new GregorianCalendar(2011,11, 25); holidays.setDayExcluded(christmas, true);

//tell the Schedule about our holiday calendar sched.addCalendar("holidays", holidays, false, false);

*/

sched.start();

Scheduler for the Oracle SOA Suitę lig: SOAScheduler




Wyszukiwarka

Podobne podstrony:
Dandelion Pat Dandelion Thesc pattem dctails sliould be used in conjunction with the Form-A-Lines Ge
57a 2 mes Water WheelCountry Scenes These pattern details should be used in conjunction with the For
Seahorse HomesScahorscSca Life Kit Thesc patiem dctails should be uscd in conjunction with the Fonn-
89569 Thistle Thistle Thesc pattern dctails should be used in conjunction with the Form-A-Lines Gene
f13 8 New Project Information 3 ISAPI Extension Wizard will create a new skeleton project with the f
f14 16 E New Project Information AppWizard will create a new skeleton project with the following
f16 6 E3 New Project Information AppWizard will create a new skeleton project with the following
f17 1 E3 New Project Information AppWizard will create a new skeleton project with the following
f19 2 New Project Information m AppWizard will create a new skeleton project with the following
f31 2 New Project Information 3 AppWizard will create a new skeleton project with the following
f6 1 New Project Information m AppWizard will create a new skeleton project with the following
f9 3 E3 New Project Information AppWizard will create a new skeleton project with the following
system 93 93 ready to hegin an absolutely corresponding action (but replace the word " right &q
mbs 063 MY BREATHING SYSTEM beginncrs to assist with the hands in the following manner : Takc tbem a

więcej podobnych podstron