× 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: Controlled shutdown of a Java "daemon"
  • From: marshall@xxxxxxxxxxx
  • 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
====

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.