I deployed a simple custom task placing it in lib/endorsed. At startup, synapse
find the class with my custom task alright but it cannot find it's own Task
interface. The Task interface is defined in synapse-tasks-2.1.0.jar and I
verified the jar is included in synapse classpath.
My custom task:
package com.mytest.synapse;
import org.apache.synapse.task.Task;
public class MyTask implements Task {
@Override
public void execute() {
System.out.println("my task in action");
}
}
Synapse config file:
<definitions xmlns="http://ws.apache.org/ns/synapse">
<task class="com.mytest.synapse.MyTask" name="Task1">
<trigger interval="5"/>
</task>
</definitions>