Detect the process your Application objects are running in.
When integrating the Sensorberg SDK you probably did notice, that we run in a separate process. This also means that our SDK process has its own Application instance.
The “Sensorberg Application object” actually should not do of your logic. No need to instantiate singletons…
IF you want to detect the process you´re running in here is some code:
There is another method, but it feels wrong to iterate over all running processes. Also it´s been reported that this list might not yet contain your own process.