I meant look at the UI then trace back from there, when you run an mrp it
shows the job status on the next screen, also Jacopo's email contained much
more useful information.
Regards
Scott
On 20/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hmmm,
>
> Well, this leads me to MrpServices.java and there is nothing in there
> about
> determining if the service is already running unless possibly attempting
> to
> delegator.removeAll() will throw an exception in some particular case.
>
> I gotta believe the service engine has some call you can make
> dispatcher.isRunning("Service"). Looking at the javadocs I see a
> "processList" in JobManager with no documentation that looks hopeful. I
> see
> "registerCallback", again with no documentation which would work if I
> could
> guarantee that the machine did not crash.
>
> I guess I'll dig deep into the service manager source and see what I can
> come up with.
>
> Skip
>
> -----Original Message-----
> From: Scott Gray [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 9:52 PM
> To: [email protected]
> Subject: Re: Knowing if a service is running
>
>
> Check out the MRP run in manufacturing.
>
> Regards
> Scott
>
> On 20/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > I am writing some services that will run nightly and take several hours
> to
> > complete. I would like to know that the service is not already
> > running. I
> > am creating a record in a special entity to record the start and stop
> time
> > and the current progress, but if for instance, the service gets shut
> down,
> > the stop time will have not been written.
> >
> > Is there some way to know if a service is running?
> >
> > Skip
> >
> >
>
>