How to collect thread dumps in midtier without using JMX, jvisualvm or other third party tools