I have deployed a simple custom job. At startup, searches for Snoops Class with my custom job but it can not find its own Task interface strange. The work interface is defined in synapse-functions-2.1.0.jar and I have confirmed that the jar is included in the synapse classpath.
-
My job:
package com.mytest.synapse; Import org.apache.synapse.task.Task; Implementation of the public class MyTask work {@Override Public Zero Execute () {System.out.println ("My Work in the Work"); }}
-
Synapse Config File:
& lt; Definitions xmlns = "http://ws.apache.org/ncy/conditioning" & gt; & Lt; Work class = "com.mytest.synapse.MyTask" name = "Task1" & gt; & Lt; Trigger interval = "5" /> & Lt; / Work & gt; & Lt; / Definitions & gt;
It seems that a custom jar is to be kept In Lib, not in Lib / Endors. According to the instructions received from the transcription developer, I took my custom from Lib / Endors to Lib and it worked.
Comments
Post a Comment