my dog learned polymorphism
The moose likes Struts and the fly likes Doubt related to deployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Doubt related to deployment" Watch "Doubt related to deployment" New topic

Doubt related to deployment

Srini vasu

Joined: Jun 08, 2007
Posts: 10
Hi Friends,

I have a doubt related to deployment of struts application.

In general, in development environment how do the people do deployment?

If I am using MyEclipse, It has built-in tool for deployment.
Do the people use that tool or do they write ant scripts again for deployment.

Thanks in advance,
Srini vasu.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
In my experience, about the only time IDE deployment is used is to deploy to the developer's own "sandbox" environment. Any deployment to an integration test environment or to a production environment is usually done through an Ant script. The Ant script will usually check out the code from whatever SCM tool is being used, compile it, package it, and sometimes copy the EAR or WAR file to the receiving environment.

One of the problems with using WAR files created through an IDE is that the WAR file reflects only what was in that particular developer's work environment, not what was checked in to the SCM tool. With an Ant script, there is no question about the fact that the WAR file contains only what was actually checked in to the SCM tool.

Consultant, Sima Solutions
Srini vasu

Joined: Jun 08, 2007
Posts: 10
Hi Merrill Higginson,

Thank you for you doubt is clarified.

I agree. Here's the link:
subject: Doubt related to deployment
jQuery in Action, 3rd edition