Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #17038
| From | markspace <-@.> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Accessing a thread |
| Date | 2012-08-03 10:07 -0700 |
| Organization | A noiseless patient Spider |
| 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> |
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 | Next — Previous in thread | Find similar | Unroll 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