Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Developer's Guide

- Previous: Sun Java System Application Server Descriptors
- Next: Directory Structure

## Naming Standards

Names of applications and individually deployed EJB JAR, WAR, and connector RAR modules must be unique within an Application Server domain. Modules of the same type within an application must have unique names. In addition, for entity beans that use CMP,`.dbschema` file names must be unique within an application.

If you do not explicitly specify a name, the default name is the first portion of the file name (without the `.war` or `.jar` extension). Modules of different types can have the same name within an application, because the directories holding the individual modules are named with `_jar`, `_war` and `_rar` suffixes. This is the case when you use the Administration Console, the `asadmin` command, or the deploytool to deploy an application or module. See Tools for Deployment.

Make sure your package and file names do not contain spaces or characters that are illegal for your operating system.

If you are writing your own JSR 88 client to deploy applications to the Application Server using the following API, the name of the application is taken from the `display-name` entry in the J2EE standard deployment descriptor, because there is no file name in this case. If the `display-name` entry is not present, the Application Server creates a temporary file name and uses that name to deploy the application.

    javax.enterprise.deploy.spi.DeploymentManager.distribute(Target[],
    InputStream, InputStream)

Neither the Administration Console, the `asadmin` command, nor the deploytool uses this API.

For more information about JSR 88, see the JSR 88 page at `http://jcp.org/en/jsr/detail?id=88`.

- Previous: Sun Java System Application Server Descriptors
- Next: Directory Structure

- © 2010, Oracle Corporation and/or its affiliates