Deploying the enterprise archive package

To make available for use, you must create and deploy the application EAR file.

About this task

To deploy the enterprise archive package, use the following procedure:

Procedure

  1. Set up the application server appropriately for deploying the application.
  2. Create the EAR package for the application server.
    • To create the application EAR file for a single WAR deployment, run the following command from the <INSTALL_DIR>/bin directory: UNIX
      ./buildear.sh (.cmd for Windows) -Dappserver=<application server> -Dwarfiles=<war file> -Dearfile=<ear file>
    • To create the application EAR file for a multiple WAR deployment, run the following command from the <INSTALL_DIR>/bin directory:

      ./buildear.sh (.cmd for Windows) -Dsupport.multi.war=true
      -Dappserver=<application server> -Dwarfiles=<war file,<comma-separated packages>
      -Dearfile=<ear file>

      To create additional WAR files, add the appropriate packages to the value of the -Dwarfiles argument, separated by commas. For example, to create three WAR files, set the -Dwarfiles argument in the commands in Step 2 as follows:

      -Dwarfiles=<war file 1>,<war file 2>,<war file 3>

      Running the command in this step creates the EAR file in the <INSTALL_DIR>/external_deployments directory. It also places the multiple war files in the EAR file.

  3. Deploy the EAR file on the application server.