Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Is it possible to dynamically configure Tomcat?

0
Posted

Is it possible to dynamically configure Tomcat?

0

Location: http://www.jguru.com/faq/view.jsp?EID=425653 Created: May 21, 2001 Author: Ivo Limmen (http://www.jguru.com/guru/viewbio.jsp?EID=327483) Question originally posed by Amos Shapira (http://www.jguru.com/guru/viewbio.jsp?EID=4346 It can be done partially. By including the Tomcat library into a servlet you can access a lot of internal stuff from Tomcat. You can get access to the real underlying objects instead of using the javax.* facade objects. You would have to learn more about Tomcat to be able to do a lot with it. I suggest you generate the API from the Tomcat source (like I did) and experiment with it. For example, this is the source I used to obtain all the current active web applications running in Tomcat 3.2.1. I hope this is useful for you. import java.util.Enumeration; import java.util.ArrayList; import javax.servlet.http.*; import org.apache.tomcat.core.Request; import org.apache.tomcat.core.FacadeManager; import org.apache.tomcat.core.Context; import org.apache.tomca

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123