🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #933

an idea to consider

#933
From: Alan Shiers
Date: Sun, 07 Jul 2002 01:45
34 lines
2411 bytes
Hi there,

I'm wondering if an idea I've had can be implemented with Java. I want
to get some feedback from yourselves before I go too far in proceeding.

I've completed a client/server application using Java and have gone
through considerable pains to try to make the server side app run on
Linux.

As it stands now, in order to run the server app, I have to log in as
"root", keep my session open, and use the java command to run the
application. While it is running, I have set it up so that in order to
shut it down, you can type "stop" at the prompt.  This is great,
however, now I'd like to take things a step further.

I'd like to be able to run the application automatically when the
computer is booted up so that I don't have to log in and keep a session
open in order to run it. If I was to pull this off, this would present
the dilemma of shutting it off when ever I wanted.

Then I got the bright idea...why not encorporate a threaded class as
part of the server app that has another ServerSocket object in it set to
listen only to the loopback address (127.0.0.1).  Then include with the
program one additional class with its own main() method and a Socket
object, which I can use to execute solely for the purposes to
communicating with the running server app and tell it to shut down.

That would work, wouldn't it?

For those of you who are Linux savy, maybe you see some problems with
this?
I'd like to hear any comments you may have.

Alan
Technical Details
Message-ID: <3D279D25.59AA52E@hfx.eastlink.ca>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.cs.utwente.nl!newshunter!cosy.sbg.ac.at!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,4157c064c52214d4,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-06 17:56:08 PST
Message-ID: <3D279D25.59AA52E@hfx.eastlink.ca>
Date: Sat, 06 Jul 2002 21:45:09 -0400
From: Alan Shiers <ashiers@hfx.eastlink.ca>
Organization: Mustard Seed Software
X-Mailer: Mozilla 4.78 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: an idea to consider
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.222.101.2
X-Trace: dnews 1026002556 24.222.101.2 (6 Jul 2002 17:42:36 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.cs.utwente.nl!newshunter!cosy.sbg.ac.at!fu-berlin.de!news.rhrz.uni-bonn.de!RRZ.Uni-Koeln.DE!nntp.cs.uni-magdeburg.de!PeerFeed.KWeb.on.ca!dnews