File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Deployment Options Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deployment Options" Watch "Deployment Options" New topic

Deployment Options

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

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 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.


GenRocket - Experts at Building Test Data
Greg Charles

Joined: Oct 01, 2001
Posts: 2967

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?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Thanks Greg. I have only begun to look at EJB's so I haven't actually develped any yet. I am not sure what I am going to use to test EJB's.
What do you use?
I agree. Here's the link:
subject: Deployment Options
It's not a secret anymore!