You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/06/13 07:32:55 UTC

DO NOT REPLY [Bug 39793] New: - Domain name "Catalina:type=..." is hardcoded in several files.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39793>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39793

           Summary: Domain name "Catalina:type=..." is hardcoded in several
                    files.
           Product: Tomcat 5
           Version: 5.5.16
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: zhouxc@gmail.com
                CC: zhouxc@gmail.com


Copy from http://marc.theaimsgroup.com/?l=tomcat-dev&m=115009303905544&w=2

When I changed engine name to another (not default "Catalina") in server.xml,
for example "testEngine", I found there were two domain names in MBean tree
of tomcat, one was "Catalina", and the other was "testEngine", I wondered if
there was some other way to set them be the same (except override the
register method)? So I can maintain them under a same domain. I have looked
some source code I found "Catalina:type=..." hardcoded in several files,
BootStrap.java, for example. What do you guys think?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39793] - Domain name "Catalina:type=..." is hardcoded in several files.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39793>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39793





------- Additional Comments From zhouxc@gmail.com  2006-06-14 06:01 -------
Hi, Mark,
You know, hardcode will cause it's impossible to set the domain name
dynamically. I think if Tomcat can add a property(for example domain name) and
leave the set/get method open to customers, customer will have a chance to
change it dynamically, it will be more flexible to start tomcat by programming
model.

Thanks.

Terry

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 39793] - Domain name "Catalina:type=..." is hardcoded in several files.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39793>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39793


markt@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




------- Additional Comments From markt@apache.org  2006-06-14 02:24 -------
I have checked through the source and as far as I can tell the places where the
domain is hardcoded are all due to the mbeans being created before server.xml is
read. In this case, there is no way for the code to know what is in server.xml
and therefore the default is used.

I can think of a number of ways of getting around this but none of them are
especially pretty. Since, in my view, the benefit doesn't outweigh the cost, I
am going to mark this as won't fix.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org