  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Injecting Alias into Host | Injecting Alias into Host 2006-11-23 - By James McIntosh
Back I am using the ant command below to inject an alias into a host. When I look at http://localhost/host-manager/list it shows that the alias has been added but when I try to access the alias using a browser or telnet it does not respond. I found in the documentation ADD_ALIAS_EVENT: The ContainerEvent event type sent when a new alias is added by addAlias().
I thought that this would be called and the alias activated... I looked in the source and saw that org.apache.catalina.mbeans.StandardHostMBean (String) calls org.apache.catalina.core.StandardHostaddAlias(String) This is the method calls the fireContainerEvent(ADD_ALIAS_EVENT, alias);
My JMX call is as follows:
<target name="addAlias" description="Add alias to host"> <jmxOpen host="${jmx.server.name}" port="${jmx.server.port}" username="${jmx.server.username}" password="${jmx.server.password}" /> <jmxInvoke name="Catalina:type=Host,host=${host.hostname}" operation="addAlias" > <arg value="${host.alias}"/> </jmxInvoke> </target>
(Tomcat version 5.5.20)
Any help is much appreciated Kind regards James McIntosh
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|
 |