https://bz.apache.org/bugzilla/show_bug.cgi?id=60927

--- Comment #3 from Huxing Zhang <huxing.zh...@gmail.com> ---
(In reply to Mark Thomas from comment #2)
> It has been this way since the class was first introduced some 8+ years ago.

I don't know that exists for so long time until you mentioned.

> Users have always been able to change the names if they wish to do so.

Yes, with only following 2 lines of code:

Tomcat tomcat = new Tomcat();
tomcat.getEngine().setName("Catalina");

Note that the following code won't work:

Tomcat tomcat = new Tomcat();
tomcat.getService().setName("Catalina");

What I thought is sth. likes this:

Tomcat tomcat = new Tomcat("Catalina");

But there is no much difference.

> 
> Experience has shown that changing the default JMX name of a component in a
> point release breaks JMX monitoring for existing users. That limits any
> change to 9.0.x only and it will still break things for existing 9.0.x users.

It looks reasonable to me.

> Given that this is only a default, it doesn't look to me as if the benefit
> outweighs the risk.

Agreed.

I will withdraw this proposal, our monitoring tools has been updated using the
above workaround.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to