OQL for thread locals (matching locals to threads) [message #986923] |
Thu, 22 November 2012 06:35  |
Eclipse User |
|
|
|
I've been trying to figure out whether it is possible to create some OQL which will return a thread name and specific fields of an object that exists in a stack frame on that thread.
The object in question is a Tomcat request. As far as I can see its only link to the thread is via a Java Local - i.e. there are no named object attributes that contain a reference in either direction that I can use to link the two in OQL.
I can do it manually in the GUI one thread at a time, but I want to speed things up by using a query to do all threads.
So far I've managed to find some OQL to return all objects referenced by the thread, but I can't figure out how to also get the thread name in the results. My trial and error attempts just produced syntax errors. I'll also need to refer to individual fields in the request rather than just returning the whole object.
select distinct * from objects (SELECT objects outbounds(thread) FROM INSTANCEOF java.lang.Thread thread)
Thanks in advance.
Andy Carlson
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04114 seconds