This subsection describes the rules for assigning the optional names to Enterprise Beans and J2EE resources.
This subsection describes the characters that can be specified as the optional name and the specification constraints.
You can specify a name containing the following characters as an optional name:
However, you can use the forward slash (/) in the name only when the forward slash is used as a delimiter.
You cannot specify the following names as optional names. If you specify the following names, the J2EE applications or J2EE resources cannot be started:
Apart from the above, for the J2EE resources, the definition specified later becomes valid when the same name is specified.
The following table describes whether the duplication of the optional name is allowed when the optional names are assigned to Enterprise Beans and J2EE resources.
Table 2-24 Duplication of the optional names for Enterprise Beans and J2EE resources
Target for assigning the optional name | Enterprise Beans with remote interface | Enterprise Beans with local interface | Resource adapters included in the J2EE application | J2EE resources #1 |
---|---|---|---|---|
Enterprise Beans with remote interface | N | Y#2 | N | N |
Enterprise Beans with local interface | Y#2 | C | C | N |
Resource adapters included in the J2EE application | N | C | C | N |
J2EE resources #1 | N | N | N | N |
#1 Excluding the resource adapters included in the J2EE application.
#2 Can be duplicated regardless of whether the local call optimization functionality is used.
Note that for the combinations in which the optional names cannot be duplicated, the specification of the optional name might be disallowed even if the name does not match completely.
This is described with the following example:
Figure 2-7 Example wherein the optional name cannot be specified although the name does not match completely
If an optional name that cannot be duplicated is specified, an error occurs at the following timings in each object where the optional name is specified: