JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Deploying Oracle Java CAPS Projects     Java CAPS Documentation
search filter icon
search icon

Document Information

1.  Deploying Java CAPS Projects

Creating a Deployment Profile

To create a Deployment Profile

Naming the Application File

To specify the filename of the EAR file in the NetBeans IDE

To specify the filename of the EAR file from the command line (Windows)

To specify the filename of the EAR file from the command line (AIX/LinuxSolaris)

Automapping

Mapping Variables

Version Control

Creating Snapshots

Retrieving Snapshots

Building an Application File

Building an Application File From the Command Line

To Set up Your System to Use commandline codegen

Windows Platform Procedures

To Build an Application File Based on a Property File Only (Windows)

To Build an Application File Using Command Line Parameters Only (Windows)

To Build an Application File Based on Both a Property File and Command Line Parameters (Windows)

UNIX Platform Procedures

To Build an Application File based on a Property File Only (AIX/Linux/Solaris)

To Build an Application File Using Command Line Parameters Only (AIX/Linux/Solaris)

To Build an Application File Based on Both a Property File and Command Line Parameters (AIX/Linux/Solaris)

Deploying Application Files from the NetBeans IDE

To Deploy an Application File from the NetBeans IDE

Deploying Application Files from Enterprise Manager

Adding the Application Server Domain to Enterprise Manager

To Add the Application Server Domain to Enterprise Manager

Deploying the Application File

To Deploy the Application File

Deploying Application Files from the Admin Console

To Deploy an Application File from the Admin Console

Deploying Application Files from the Command Line

Deploying from the asadmin Utility

Deploying from the asant Utility

Index

Deploying Application Files from the Command Line

You can deploy a Java CAPS Repository-based project to GlassFish Application Server from the following command-line utilities:

These instructions assume that you have built an application file. See Building an Application File.

Deploying from the asadmin Utility

The application server includes a command-line utility called asadmin for performing administrative tasks.

To deploy an application file from the asadmin utility, use the deploy command. For example:

asadmin deploy C:\JavaCAPS6\dpFTQFprjFTQF.ear
Command deploy executed successfully

For detailed information about the asadmin utility, see the GlassFish Application Server Administration Guide.

Deploying from the asant Utility

The application server includes a command-line utility called asant for invoking Apache Ant.

To deploy an application file from the asant utility, use the sun-appserver-deploy task. The following example is a simple application deployment script. The file and passwordfile attributes are shown. Other attributes are implied.

<sun-appserver-deploy
file="${assemble}/dpFTQFprjFTQF.ear"
passwordfile="${passwordfile}" />

For detailed information about the asant utility, see the GlassFish Application Server Developer's Guide.