Hi - I am using the Scheduler MBean to schedule execution of a given class.
The class I want the scheduler to invoke I have added to a jar, and I drop it in the deploy directory, along with the service xml file describing the Scheduler service params.
If I manually copy these 2 files into the deploy directory when the server is up, jar first, xml second, then everything works ok. When the server is restarted though, the Scheduler is looking for my class before it looks like the jar file has been deployed, and so it fails.
I guess I need to define a dependency in the service xml file, but I'm not sure how to do this for a class that is in a jar file.
How do I do this? And have I deployed my class called by the scheduler the correct way, or is there another way to do this?
Thanks in advance, Kevin