In Java 1.4, is there any better way of getting a Thread's ID than using Thread.getName()
?
I mean, getName()
in unit tests returns something like "Thread-1"
, but in WebLogic 10 I get "[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'.xml"
.