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


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

Re: Accessing a thread

Path csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.programmer
Subject Re: Accessing a thread
Date Fri, 03 Aug 2012 10:07:24 -0700
Organization A noiseless patient Spider
Lines 26
Message-ID <jvh0gf$l27$1@dont-email.me> (permalink)
References <50181D60.55729.calajapr@time.synchro.net> <50182C82.55850.calajapr@time.synchro.net> <a82ae4F5osU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Fri, 3 Aug 2012 17:07:27 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="21575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Vn78EA/Vkt98odJJPkA/2aQ4gFi3U3qc="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0
In-Reply-To <a82ae4F5osU1@mid.individual.net>
Cancel-Lock sha1:nX1KecUAC2SkyI9q+OcNoaFS9qI=
Xref csiph.com comp.lang.java.programmer:17038

Show key headers only | View raw


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.



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


Thread

Accessing a thread "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
  Re: Accessing a thread "Eric Sosman" <eric.sosman@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
    Re: Accessing a thread "Dirk Bruere at NeoPax" <dirk.bruere.at.neopax@1:261/38.remove-dpk-this> - 2012-07-31 18:02 +0000
  Re: Accessing a thread "Roedy Green" <roedy.green@1:261/38.remove-x1c-this> - 2012-07-31 20:07 +0000
    Re: Accessing a thread Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2012-08-03 16:52 +0100
      Re: Accessing a thread markspace <-@.> - 2012-08-03 10:07 -0700

csiph-web