On Tue, 16 Jan 2001, you wrote:
> Hi Dave,
>
> > > Also I was trying to get a list of jobs with the following command
> > >
> > > Vector jobs = TurbineSchedulerService.listJobs();
> > >
> > > but this gives an error at compile time. What should I be using instead?
> >
> > What's the error?
> >
>
> The error I'm getting is
>
> "Non-static method listJobs cannot be referenced from a static context"
>
> I looked at the security code for similiarities as I thought they would work
> approx. the same. But perhaps I'm using the method wrongly?
Try this -
ScheduleService ss =
(ScheduleService)TurbineServices.getInstance().getService(ScheduleService.SERVICE_NAME);
Vector jobs = ss.listJobs();
The scheduler is missing the static accessor. I'll add it later today.
--
Dave Bryson
[EMAIL PROTECTED]
----------------------
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]