Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AUTOMATED INSTALLATION OF J2EE WEB APPLICATION!

 
sultan mahmood
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,
I am working on a web portal that uses EJB2.0
I want to use a software that would automatically install the web application using EAR file, like Install shield is used for desktop applications.
Can any body help me?
Thanx in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although an EAR is the universal format for webapps, what an appserver DOES with the EAR depends on what appserver you're running. For example, in WebLogic 6, you just feed the EAR to its control console, but in my system using Tomcat for the JSPs and JOnAS for the EJBs, I have to write a shell script to extract the components and place them in appropriate directories.
 
Shin Hashitani
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I was actually wondering the same thing.
I saw an example of how to create custom Task and use it in Ant. And I thought maybe it's possible. This is a WebLogic situation.
If I do like:
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import weblogic.ejbc;
public class EJBC extends Task {
.... and
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
import weblogic.deploy;
public class EJBDeploy extends Task{
....
I can compile, jar, ejbc, and deploy through a single buildfile?
Has anyone tried to do this, or incorporated in development & mainenance process in actual work environment?
Thank you.
Shin Hashitani
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do just about anything using Ant and the odd Ant custom task.
However, it's the appserver that limits things - your Ant task has to understand the differences between appservers in order to deploy portably.
You can see this problem if you look at the contributed custom tasks for EJBs on the Ant website.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic