cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduler in a webdynpro java application

Former Member
0 Kudos

Hello Experts,

we are trying to develope a custom webdynpro application and we need to schedule an action (that starts pushing a botton).

we're using the IService class to implement our scheduling ...

following, the code used in the pdf project :

ServiceFactory aServiceFactory = ServiceFactory.getInstance();

IService aService = aServiceFactory.getService(IServiceTypesConst.SCHEDULER_SERVICE);

ISchedulerService schedulerService = (ISchedulerService)aService;

aSchedulerTask = new SchedulerTask();

inside the "run method" of the SchedulerTask class there is the code for the pdf file implementation..

ISchedulerTimeTable aSchedulerTimeTable = schedulerService.createTimeTable();

ISchedulerTime aSchedulerTime = schedulerService.createTimeWildcard();

aSchedulerTime.set( Calendar.HOUR, 1 );

aSchedulerTime.set( Calendar.MINUTE, 0 );

aSchedulerTimeTable.addToTable(aSchedulerTime);

Properties properties = new Properties();

String taskId = wdContext.currentInputElement().getTaskId();

ISchedulerEntry aSchedulerEntry = schedulerService.createSchedulerEntry(taskId,1,aSchedulerTask,aSchedulerTimeTable,properties);

The problem is that the scheduler works just for one day! And not every day as we need.

Moreover we need to call different threads with different parallel scheduling...

Are there different ways to use a schedule in a webDynpro application?

Am I doing any mistake in my code?

Any suggestions?

Thanks in advance and best regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Go throgh the below links.

/people/prakash.singh4/blog/2005/04/20/did-you-know-you-can-schedule-jobs-in-portal-using-kms-scheduler-task

http://oreilly.com/java/archive/quartz.html

Regards,

Charan