on 06-15-2009 1:00 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.