< Day Day Up > |
There are two ways to deploy an application on the production server:
Deploying As an Archived FormatTo generate an EAR file, select Build, Build EAR from the menu. Figure 15.1 shows the resulting output. This option does not enable you to choose what you want to build. Figure 15.1. Building an EAR file.
When you select this option, a wlw-manifest.xml file is created in the application's META-INF directory. This file lists the resources that need to be created for the application to run successfully. In the development and testing life cycle, WebLogic Server creates these resources automatically when you use Workshop. These resources are specific to Web services. Another way to create an EAR file is by using the wlwBuild.cmd command-line tool located in the BEA_HOME\weblogic81\workshop directory: wlwBuild -p < project-name > -od < output-dir > -of < output-file > -scp < server-classpath > - f < build-properties-file > < application-file >.work This command has the following parameters:
This tool gives you the flexibility to specify which projects you want to build into a JAR file instead of simply building everything. The following code demonstrates how this tool is used: wlwBuild -p RoomServiceAppWeb -od c:\casino -of RoomService RoomServiceApp.work Deploying As an Exploded Directory FormatDeploying as an exploded directory format instead of an archive allows your changes to take place immediately. Some examples of properties you might want to change are cache settings, visitor entitlements , and campaigns in a portal application. |
< Day Day Up > |