Hello
I can see JMX MBean names were changed in 7.4.1. Moreover, they differ in Windows and Linux versions of Jetty (see attached screenshots)
- on Windows:
-- if context path is "/" then the ObjectName is like
"org.eclipse.jetty.webapp:type=webappcontext,id=1" (no "name"attribute)
-- if context path is like "/ctx" then the ObjectName is like
"org.eclipse.jetty.webapp:type=webappcontext,name=/ctx,id=1" ("name" attribute starts with "/")
- on Linux:
-- if context path is "/" then the ObjectName is like
"org.eclipse.jetty.webapp:type=webappcontext,name=ROOT,id=1" ("name" attribute is set to "ROOT")
-- if context path is like "/ctx" then the ObjectName is like "org.eclipse.jetty.webapp:type=webappcontext,name=ctx,id=1" ("name" attribute doesn't start with "/")
It's strange to have different behavior here in different OS'es. Is this a bug? Is it subject to change in the nearest future?
Attaching the screenshots of jconsole showing ObjectName when the context path is "/" for Windows and Linux cases.
Thanks for clarifications,
Regards,
Michael