on 12-18-2007 9:58 PM
Hi,
I am trying to schedule a task using https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1515.
I have written some code in the run( ) to update existing resource.
I have scheduled task for every 10 minutes and It is not getting executed at all.
I don't see any log pertaining to this task in default trace.
I have tested the code written in run( ) by placing in AbstractPortalComponent and it is working fine there.
I am able to see that this task is running Sys Admin -> Monitoring -> KM ->Component Monitor.
When I get the target URL from the properties of this task in Component Monitor and place that in another window I get the message
501
Method not implemented
Could some one please guide me to achieve scheduling of task.
Regards,
Nagaraju Donikena
Hi Nagaraju,
navigate to: System Administration -> System Configuration -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks -> pick your SchedulerTask (identify by given name), point it to a CM system and fill the timetable with appropriate values for scheduling.
Without these settings it will do nothing...
I suggest Debugging the Scheduler with NWDS, this might take some time but setting the Scheduler to executing every 5 minutes will make it easiert.
regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My task is getting executed.
Thank you Henn.
Thank you Nguyen.
--Naga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I also encountered this problem in the past. Make sure that you have an empty constructor declared..somethine like this:
public class SchedulerTest implements ISchedulerTask {
public SchedulerTest() {
super();
}
public void run( String id, Properties properties ) {
...your code here...
}
}
Hope this help.
Regards,
The Hung Nguyen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagaraju,
i'm using NWDS 7.0.13, so here's how I'm debugging it:
Go to Run -> Debug ...
Pick "Remote Java Application" -> New (context menu)
Pick a name, a project in the NWDS workspace, Connection type standard (Socket Attach), use your EP host as host and port 50021 for port.
The settings for host and port must be asked for at your administrator.
Attention: The server must be debug enabled, which you can see in the Web Dynpro perspective of NWDS under J2EE engine. Check if your server instance is green (Running) and debug mode is ON.
If you start debugging by clicking the debug sign in the NWDS the debugger jumps in when the Scheduler is executed. You can debug it just as you would with a standard java app.
Hope I could help you!
regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.