Skip Navigation Links | |
Exit Print View | |
Deploying Oracle Java CAPS Projects Java CAPS Documentation |
1. Deploying Java CAPS Projects
To create a Deployment Profile
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)
Building an Application File From the Command Line
To Set up Your System to Use commandline codegen
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)
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)
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
You can deploy a Java CAPS Repository-based project to GlassFish Application Server from the following command-line utilities:
asadmin
asant
These instructions assume that you have built an application file. See Building an Application File.
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.
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.