tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neale Upstone (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MTOMCAT-171) Multiple executions (i.e. sep tomcats clash due to identical JMX naming)
Date Mon, 23 Jul 2012 16:05:34 GMT
Neale Upstone created MTOMCAT-171:
-------------------------------------

             Summary: Multiple executions (i.e. sep tomcats clash due to identical JMX naming)
                 Key: MTOMCAT-171
                 URL: https://issues.apache.org/jira/browse/MTOMCAT-171
             Project: Apache Tomcat Maven Plugin
          Issue Type: Bug
          Components: tomcat6
            Reporter: Neale Upstone
            Assignee: Olivier Lamy (*$^¨%`£)


If two executions are configured, for example to create two tomcat instances running on separate
ports, these do not behave independently, as they get identified to JMX using the same names.

Some disambiguation is required, for which the httpPort might be enough (this works for me
for tomcat6)

                 // create engine
                 Engine engine = container.createEngine();
-                engine.setName( "localEngine" );
+                engine.setName( "localEngine-" + port);
                 engine.addChild( host );
                 engine.setDefaultHost( host.getName() );


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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


Mime
View raw message