Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 6.1.2rc3
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Contexts appear in tools such as jconsole identified by a number starting from 0. If you have more than a couple of contexts, it is difficult to identify a context when it needs to be managed, because you have to view the Attributes of each to find the one you want.
Attached is an implementation of org.mortbay.jetty.servlet.management.ContextMBean, which will use the context path as the id, rather than a sequential number.
Stephen,
Jetty used to have the context path as part of the object name, however we changed for the reason that
context path is part of the configuration of a context and may be changed at runtime.
This gives you the dilemma of changing the object name or not!
The advice we were given is that proper management consoles would be able to provide proper
displays with context path taken from the object values rather than the name.
So while it IS a pain to only have numeric values... there is good reason.
I guess we could consider an option of naming with context path?