Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17095

Re: Accessing a thread

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail
From "markspace" <markspace@1:261/38.remove-yy0-this>
Subject Re: Accessing a thread
Message-ID <501C156A.56054.calajapr@time.synchro.net> (permalink)
X-Comment-To Dirk Bruere at NeoPax
Newsgroups comp.lang.java.programmer
In-Reply-To <501C156A.56053.calajapr@time.synchro.net>
References <501C156A.56053.calajapr@time.synchro.net>
X-FTN-AREA COMP.LANG.JAVA.PROGRAMMER
X-FTN-MSGID 1:261/38 66a9cf14
X-FTN-REPLY 1:261/38 f13d4552
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98]
Lines 29
Date Fri, 03 Aug 2012 18:54:23 GMT
NNTP-Posting-Host 69.21.70.65
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1344020063 69.21.70.65 (Fri, 03 Aug 2012 13:54:23 CDT)
NNTP-Posting-Date Fri, 03 Aug 2012 13:54:23 CDT
Organization tds.net
Xref csiph.com comp.lang.java.programmer:17095

Show key headers only | View raw


  To: Dirk Bruere at NeoPax
From: markspace <-@.>

On 8/3/2012 8:52 AM, Dirk Bruere at NeoPax wrote:

> public static Thread txToLanThreadRef;


Static variables like this are not considered best practice.  Consider some 
alternatives, including factories, a context object, or some sort of generic 
message system.


> However, when I try to access it elsewhere, this does not work
>
> controller.txToLanThreadRef.


"Does not work" is a little unspecific.  What error/problem do you get?
  Can you make a short, complete, compilable example that duplicates the
problem?

It should work, must work, even, according to the Java programming language.  
If there's an issue, it must be with the way you are using it.  Please show us.

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Accessing a thread "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
  Re: Accessing a thread "markspace" <markspace@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000

csiph-web