---
title: "<application> Element"
url: https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/application-descriptor-element
docs_index: https://docs.zeroc.com/llms.txt
---

> For an index of every page, see [llms.txt](https://docs.zeroc.com/llms.txt).

# \<application> Element

An `application` element defines an [IceGrid application](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-architecture.md). An application typically contains at least one [node](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/node-descriptor-element.md) element, but it may also be used for other purposes such as defining [server](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/server-template-descriptor-element.md) and [service](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/service-template-descriptor-element.md) templates, [default templates](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-templates.md), [replica groups](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/replica-group-descriptor-element.md) and [property sets](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/properties-descriptor-element.md).

This element must be a child of an [icegrid](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/icegrid-descriptor-element.md) element. Only one `application` element is permitted per file.

The following attributes are supported.

| **Attribute** | **Description** | **Required** |
| --- | --- | --- |
| `import-default-templates` | If `true`, the [default templates](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-templates.md) configured for the IceGrid registry are imported and available for use within this application. If not specified, the default value is `false`. | No |
| `name` | The name of the application. This name must be unique among all applications in the registry. Within the application, child elements can refer to its name using the [reserved variable](https://docs.zeroc.com/ice/3.8/services/icegrid/using-descriptor-variables-and-parameters.md) `${application}`. | Yes |

An optional nested [description](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/description-descriptor-element.md) element provides free-form descriptive text.

Here is an example to demonstrate the use of this element:

```xml
<icegrid>
    <application name="MyApplication" import-default-templates="true">
        <description>A description of the application.</description>
        ...
    </application>
</icegrid>
```

## See Also

- [IceGrid Architecture](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-architecture.md)
- [Node Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/node-descriptor-element.md)
- [Server-Template Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/server-template-descriptor-element.md)
- [Service-Template Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/service-template-descriptor-element.md)
- [Replica-Group Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/replica-group-descriptor-element.md)
- [Properties Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/properties-descriptor-element.md)
- [IceGrid Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/icegrid-descriptor-element.md)
- [Description Descriptor Element](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-xml-reference/description-descriptor-element.md)
- [IceGrid Templates](https://docs.zeroc.com/ice/3.8/services/icegrid/icegrid-templates.md)
- [Using Descriptor Variables and Parameters](https://docs.zeroc.com/ice/3.8/services/icegrid/using-descriptor-variables-and-parameters.md)
