🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18550

Progress Indication from a thread

#18550
From: David K. Bowers
Date: Tue, 09 Jun 1998 00:00
24 lines
1358 bytes
Hi all,

I am writing a server application.  The application (Class FrameServer) has
a textarea to display a log of all activities the server is performing.
When a connection is made I spin off a thread (Class
ThreadedRequestHandler).  I would like to be able to write a line to that
textarea to show actions performed by ThreadedRequestHandler.  For
example...

New socket connection on port 8189...
User xyz logged in successfully...
User xyz requested client balance sheet...
client balance sheet sent to user xyz...
User xyz logged off...
User xyz socket connection closed...

I am clueless as to how I can accomplish this.  I tried to add a public
method to FrameServer  and then I tried to call the method from
ThreadedRequestHandler.  I got an errormessage to the effect that non static
method cannot be referenced from a static context.  Any suggestions?

TIA,
Dave
Technical Details
Message-ID: <6lkb4i$9m5$1@chile.it.earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,237ac3e7eba56d73,start
X-Google-Attributes: gidf74b3,public
From: "David K. Bowers" <dbowers@csstrategies.com>
Subject: Progress Indication from a thread
Date: 1998/06/09
Message-ID: <6lkb4i$9m5$1@chile.it.earthlink.net>
X-Deja-AN: 361156674
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: EarthLink Network, Inc.
Newsgroups: borland.public.jbuilder.java.language