File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes AUTOMATED INSTALLATION OF J2EE WEB APPLICATION! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "AUTOMATED INSTALLATION OF J2EE WEB APPLICATION!" Watch "AUTOMATED INSTALLATION OF J2EE WEB APPLICATION!" New topic
Author

AUTOMATED INSTALLATION OF J2EE WEB APPLICATION!

sultan mahmood
Greenhorn

Joined: Mar 05, 2002
Posts: 1
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.


Sultan Mahmood<br />Softwerc, Lahore<br />Pakistan
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Shin Hashitani
Ranch Hand

Joined: Dec 04, 2001
Posts: 54
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


/*<br /> * Quants Inc.<br /> * Engineer<br /> *<br /> * Shin Hashitani<br /> * hashitani@quants.co.jp<br /> * <a href="http://www.quants.co.jp" target="_blank" rel="nofollow">www.quants.co.jp</a><br />*/
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15629
    
  15

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: AUTOMATED INSTALLATION OF J2EE WEB APPLICATION!
 
Similar Threads
help on ibm webserver???
need help installer for java web application
how to start IBM web server????
Tomcat on Android Samsung Galaxy Tab?
Application Build ID what is it?