Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Reference

- Previous: resource-ref
- Next: response-policy

## resources

Contains configured resources, such as database connections, JavaMailTM sessions, and so on.

Note –

You must specify a Java Naming and Directory InterfaceTM (JNDI) name for each resource. To avoid collisions with names of other enterprise resources in JNDI, and to avoid portability problems, all names in an Application Server application should begin with the string `java:comp/env`.

### Superelements

domain

### Subelements

The following table describes subelements for the `resources` element.

Table 1–103 `resources` Subelements

Element | Required | Description
--- | --- | ---
custom-resource | zero or more | Defines a custom resource.
external-jndi-resource | zero or more | Defines a resource that resides in an external JNDI repository.
jdbc-resource | zero or more | Defines a JDBC (Java Database Connectivity) resource.
mail-resource | zero or more | Defines a JavaMail resource.
persistence-manager-factory-resource | zero or more | Defines a persistence manager factory resource for CMP.
admin-object-resource | zero or more | Defines an administered object for an inbound resource adapter.
connector-resource | zero or more | Defines a connector (resource adapter) resource.
resource-adapter-config | zero or more | Defines a resource adapter configuration.
jdbc-connection-pool | zero or more | Defines the properties that are required for creating a JDBC connection pool.
connector-connection-pool | zero or more | Defines the properties that are required for creating a connector connection pool.

Note –

Subelements of a `resources` element can occur in any order.

- Previous: resource-ref
- Next: response-policy

- © 2010, Oracle Corporation and/or its affiliates