× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Controlled shutdown of a Java "daemon"
  • From: Michael hawes <mihawes@xxxxxxxxx>
  • Date: Thu, 15 Mar 2001 15:38:36 -0800 (PST)

How about sending a data queue entry with something in
it that indicates a shutdown request. e.g. a menu
option calls an RPG program that adds the entry to the
queue.

--- marshall@dpslink.com wrote: > 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
> ====


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/
+---
| 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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.