I want to, in a running java application, get the exact point of execution or line of running code.
I'm researching some fault tolerance approaches and trying to implements some solutions. I'm serializing an Thread object to file and forcing an shutdown on my application. My objective is to re-run the serializable Thread not from start of "run" method, but from the line when it was serialized.
The problem is: in a running Thread, after call an "pause" method, get the line of a paused code. After this, I want to instantiate a new Thread of it type and running from that line.
Anyone knows how can I do it?