This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Is there a mechanism to dynamically configuring Tomcat? Specifically, I am interested in being able to dynamically change the subdomains and servlet mappings Tomcat would respond to. I've been looking thru the Tomcat API and, while it appears this might to be possible, I have been unable to find any real code examples. If it is possible, can someone point me to some code examples or at least in the right direction?
You might also want to look at the Administrator application. It doesn't ship with the more recent versions and I'm not sure if it's even supported any more but I know it does allow you to create, and configure things like data sources, and users while Tomcat is running.
The source to this application might get you off to a good start.