|
An example (in a CL): RTVJOBA JOB(&JOB) USER(&USER) NBR(&NBR) ENDSTS(&ENDSTS) IF COND(&ENDSTS = '1') THEN(GOTO CMDLBL(END)) > -----Original Message----- > From: Joe Pluta [SMTP:joepluta@plutabrothers.com] > Sent: Thursday, March 15, 2001 2:23 PM > To: JAVA400-L@midrange.com > Subject: Re: Controlled shutdown of a Java "daemon" > > First, a moderator alert: > > Please turn off the HTML switch when mailing to the list. There are > people out here who don't have sophisticated HTML-capable mailers. > ---- > > Okay, now that that's out of the way... the way I usually shut down my > servers is with a shutdown request. What's wrong with that approach? And > if you MUST use the shutdown technique, write a small subsystem monitor > that checks for shutdown, and sends shutdown requests to the Java > applications. > > Joe > > ---------- Original Message ---------------------------------- > From: marshall@dpslink.com > Date: Thu, 15 Mar 2001 15:52:08 -0500 > > >I'm running a java program as a daemon process in it's own subsystem. It > > >is initiated via RUNJVA in a CL program. The job responds to requests > >placed on a data queue. It never ends, it justs waits on requests. > > > >So far this is working great, but I am looking for a "nice" way to shut > >the thing down. I'd like it to end via a controlled shutdown of the > >subsystem (ENDSBS xxxx *CNTRLD). Currently, a controlled end of the > >subsystem without a delay time value will cause the subsystem to never > >end. > > > >I'm hoping there is a way for my java program to check that a controlled > >shutdown has been requested so that it can shut itself down in an orderly > > >fashion and end via a System.exit(0). Any ideas??? > >=== > >Marshall Dunbar > >DPS, Inc. > >marshall@dpslink.com > >(317)574-4300 (800)654-4689 > >==== > > +--- > | This is the JAVA/400 Mailing List! > | To submit a new message, send your mail to JAVA400-L@midrange.com. > | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. > | To unsubscribe from this list send email to > JAVA400-L-UNSUB@midrange.com. > | Questions should be directed to the list owner: joe@zappie.net > +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: joe@zappie.net +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.