This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 2963

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!