Lets say you have a machine with multiple JVMs on it with different configurations. Is there a way to get a GUID/UUID from each one to pass into the app running on it? Not instances of the JVM but specific JVM that launched process. I'm ok with writing a program that seeks out all JVMs on a machine and gives them some metadata to pull into app during ClassLoader phase (or something).
I have been over in .NET space for a while and forget what might be the simplest way to solve this issue in Java. If there is something already built into Java that can do this per JVM great, if not I am willing to go the separate assigning phase route.
The end goal is every single transaction flowing through the system will have a main GUID associated with it... BUT I would also like to stamp each part of the work within a "job" with the JVM that did that part of the work. Think multiple JVMs per machine and perhaps later... multiple machines.
Note: If users feel I used wrong Tags please edit them. Thanks.