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.
There are about 4 or 5 different Forums here at Javaranch where I could have posted this question. However, I chose this one because it hopefully encoupasses J2EE. So feel free to move this if need be. I have been learning, testing, studying, etc as many aspects of J2EE as possible. EJB, Servlet, JSP, etc. I have been using Tomcat as my Container and MySQL as the backend DB. As I am always testing, I have both MySQL and Tomcat running on the same PC that I am developing on for testing purposes which I have read is the appropriate thing to do as not to disrupt the production server. It just makes since. However, I have started trying to learn how to use Ant, and I notice that in the build.properties file I am making there is a reference to a tomcat.home property. From what I can tell, this has to be some form of a directory path to the home directory of Tomcat. While this is good for testing purposes, I have yet to figure out how you would use Ant to deploy a Web Application on a remote server. Are there other tools I need to be using? Do I need to look at CVS? My Question: What is the best method to deploy a J2EE production ready application onto the production server with the least amount of interference as possible. Thanks.
The way I'm doing it is by using the ftp task of Ant. That's an optional task though, so you have to drop an extra jar into your ANT_HOME/lib. I think that's NetComponents.jar. How are you using Tomcat for EJBs? It's not an EJB container, is it?