9818247045

9818247045



JobDetail jd = new JobDetail(JOB_NAME, GROUP_NAME, HelloWorldJob.class);

CronTrigger cronTrigger = new CronTrigger(TRIGGER_NAME, GROUP_NAME);

String cronExpr = nuli;

// Get the cron Expression as an Init parameter cronExpr = getlnitParameter(''cronExpr");

System.out.println(this.getClass().getName() +" Cron Expression for" + JOB_NAME ++ cronExpr); cronTrigger.setCronExpression(cronExpr);

System.out.println(this.getClass().getName() +" Scheduling Job" + JOB_NAME); sched.scheduleJob(jd, cronTrigger);

System.out.println(this.getClass().getName() + " Job" + JOBJMAME +" scheduled.");

} catch (Exception e) {

System.out.println(this.getClass().getName() + e.getLocalizedMessage()); e.printStackTrace();

}

}

public void destroyO { try {

if (sched != nuli) {

sched.unscheduleJob(TRIGGER_NAME, JOB_NAME); sched.shutdown();

}

} catch (Exception e) {

System.out.println(this.getClass().getName() +" failed to shutdown:" + e.toString(J); e.printStackTrace();

}

System.out.println(this.getClass().getName() +" stopped");

}

public void doGet(HttpServletRequest request,

HttpServletResponse response) throws ServletException,

IOException {

PrintWriter ajax = new PrintWriter(response.getOutputStream());

// logger.warning("get");

String action = request.getParameter("action"); if ("single".equals(action)) { if (sched != nuli) { try {

Trigger trigger =

new SimpleTrigger("SOASingleTrigger", GROUP_NAME, new Date()); trigger.setJobName(JOB_NAM E); trigger.se tJobGroup(GROUP_NAME);

// Schedule the trigger sched.scheduleJob(trigger);

} catch (Exception e) {

System.out.println(this.getClass().getName() + e.getLocalizedMessagef)); e.printStackTrace();

}

}

} else if ("start".equals(action)) { if (sched != nuli) { try {

JobDetail jd = new JobDetail(JOB_NAME, GROUP_NAME, HelloWorldJob.class);

CronTrigger cronTrigger = new CronTrigger(TRIGGER_NAME, GROUP_NAME);

Scheduler for the Oracle SOA Suitę lig: SOAScheduler



Wyszukiwarka

Podobne podstrony:
31405 wtf2 lutAL Industries, ino. certitted - Detailed Report Job Name: WSINF Customer: Report Datę:
newprojmanmak
51651 wtf3 IDEAŁ Industries, Inc. Certified - Detailed Report i Job Name: 5E Customer: Summary: AH C
33301 wtf1 Em# IDEAŁ Industries, Inc. Certified - Detailed Report Job Name: WSINF Customer: Rep
Karta pracy powstała dzięki programowiErasmus+ Your First Name, Last Name and Class : 2. Write which
PRI k2 06 kozankiewicz v1 1 Name 1. Draw class diagram for the system (24pts): Service station (1) &
PRI k2 06 kozankiewicz v4 1 Name 1. Draw class diagram for the system (24pts): Service station (X) „
•• r SCHOOL Name: Surname: Class: Datę: Worksheet # V- / W
Name Datę Class 1
PageSetup Page Setup File Edit View Insert Joo JD New    Ctrl+N Open...
At the railway station ?fining relative clauses Name: Datę: ../..... Class: Niimber Mark:
Blockbouster 2 NPP TESTY I KLUCZE00 Test Unit 24Blockbuster 2 NAME: DATĘ: CLASS: MARK:- 10 (Time: 1

więcej podobnych podstron