This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am creating an instance of tomcat via java code using the following snippet.
This uses the catlina jar. My concern is, can i use this instance as a normal tomcat instance for deploying my war files? I ran this and got an instance of tomcat running on 8080. Now, i want some other program to deploy a war file on this running server. Is it possible? Because i am not able to. Please advise on how to?
If i register a war in this class only right after starting the tomcat, it works, but can't i do this from some other class or something at a later point of time?
I use the following snippet for registering the war: