Can you explain what you mean "context root" as it relates to a Java virtual machine? Not sure what a JVM's context root is?
If you put in your browser http://220.127.116.11/cars-diagnostics to bring up the landing page of a ear mamed cars.ear cars-diagnostics is the context root. We are naming our jvm's the same thing as the application name so if the jvm is running the cars.ear we have named the jvm cars.
If you go into the JON console and drill down to the cars ear the context root is localhost/cars-diagnostics, once I get the localhost/cars-diagnostics string I'm going to strip off the localhost part of the string.
I have to have code in a plugin do this for me to complete the project.