About Deployment Profiles

Deployment profiles are project components that govern the packaging and deployment of a project or application. A deployment profile names the source files, deployment descriptors, and other auxiliary files that will be packages, the type and name of the archive file to be created, dependency information, platform-specific instructions, and other information.

Deployment profiles can be created in various ways:

To modify an existing deployment profile, double-click to open its dialog interface.

To activate a deployment profile:

The project and any projects on which it depends will be compiled and packaged.

About Packaging

Packaging is the process of assembling an archive file from its component files. Packaging is specified in the File Groups branch of deployment profile properties dialogs.

The File Groups branch consists of a list of file groups, each specifying some components. The packaged archive will be the union of all the file groups. The order of the file groups resolves name collisions: if two files have the same name, the one from the file group higher in the list is included, and the one from the lower file group is omitted.

A newly created deployment profile will include one or more predefined file groups. You can add, delete, and edit file groups.

File groups are defined by a set of contributors pruned by a set of filters. Contributors are source files, JAR files, and directories that are selected for inclusion. Filters are rules that are applied the contributors or contributors component subdirectories and files to identify the set and files that will be packaged. There are three kinds of file groups:

About Deployment Dependencies

Deployment dependencies between the components of an application are stated in their project's deployment profiles. In a project's deployment profile, name the profiles for the projects that are immediately upstream. When a deployment profile is activated for deployment, its dependencies will first be deployed.

Set deployment profile dependencies on the deployment profile's Profile Dependencies page. Only deployment profiles in the current workspace are listed and available for selection. Click the Help button for more information.

The various profile dependencies you can select include:

When deploying a profile contained in a project that has project-to-profile dependencies on other profiles, at deploy-time the profile incorporates the dependencies specified in the project. For example, if Project1.jpr contains Servlet1.java and webapp1.deploy, and depends on ejb1.jar, and project2.jpr contains MySessionEJB and ejb1.jar, then deploying webapp1.deploy results in an EAR file containing both webapp1.war and ejb1.jar.

When creating profile dependencies between JAR, WAR, and EJB JAR modules that share common JAR files, you can use the META-INF/MANIFEST.MF Class-Path attribute to link JAR files together at deploy-time. From the deployment profile properties JAR options page, select Include Manifest File (META-INF/MANIFEST.MF) . Doing so causes a single shared copy of any common JARs to be included in the EAR file.

Dependency projects can have dependencies of their own, but cyclical dependencies should be avoided. When JDeveloper encounters a circular dependency it will attempt to deploy anyway, but a warning will be displayed in the log window.


About J2EE Deployment
About J2EE Archive Formats
About Deployment Descriptors
Deploying Applications to J2EE Application Servers
Packaging and Deploying J2EE Applications
Creating and Editing a Deployment Profile

 

Copyright © 1997, 2004, Oracle. All rights reserved.